Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ app-clean:

clean: app-clean docs-clean
$(MAKE) -f Makefile clean
rm -f builddate.h Makefile.server
-test -f Makefile.server && $(MAKE) -f Makefile.server clean
rm -f paperman paperman-server builddate.h Makefile.server *.o moc_*.cpp moc_predefs.h

docs-clean:
rm -rf $(BUILDDIR)
Expand Down
1 change: 1 addition & 0 deletions desktopmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2074,6 +2074,7 @@ void Desktopmodelconv::indexToProxy (const QAbstractItemModel *model, QModelInde
void Desktopmodelconv::assertIsSource (const QAbstractItemModel *model,
const QModelIndex *index, const QModelIndexList *list)
{
Q_UNUSED(list);
Q_ASSERT (!model || model == _source);
Q_ASSERT (!index || !index->isValid () || index->model () == _source);
#ifndef QT_NO_DEBUG
Expand Down
18 changes: 9 additions & 9 deletions desktopwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ QString Desktopwidget::getSelectedPath()
{
QModelIndex ind = _dir->currentIndex();
QModelIndex src_ind = _dir_proxy->mapToSource(ind);
QString path = _model->data(src_ind, QDirModel::FilePathRole).toString();
QString path = _model->data(src_ind, Dirmodel::FilePathRole).toString();

return path;
}
Expand Down Expand Up @@ -587,7 +587,7 @@ void Desktopwidget::updateSettings ()
QModelIndex index = _model->index (i, 0, QModelIndex ());

qs.setArrayIndex (i - 1);
qs.setValue("path", _model->data (index, QDirModel::FilePathRole));
qs.setValue("path", _model->data (index, Dirmodel::FilePathRole));
}
qs.endArray ();
}
Expand Down Expand Up @@ -696,7 +696,7 @@ void Desktopwidget::startSearch(const QString& path, const QString& match)
_contents_proxy->setFilterFixedString ("");

QModelIndex root = getRootIndex();
QString root_path = _model->data(root, QDirModel::FilePathRole).toString ();
QString root_path = _model->data(root, Dirmodel::FilePathRole).toString ();

Operation op("Scanning folders", 0, this);
QStringList matches;
Expand Down Expand Up @@ -772,7 +772,7 @@ void Desktopwidget::exitSearch()
QModelIndex index = _model->index (_path);
_contents_proxy->setFilterFixedString ("");
QModelIndex root = _model->findRoot (index);
QString root_path = _model->data (root, QDirModel::FilePathRole).toString ();
QString root_path = _model->data (root, Dirmodel::FilePathRole).toString ();
QModelIndex sind = _contents->showDir(_path, root_path, _view->getMeasure());
QModelIndex ind = sind;
_modelconv->indexToProxy (ind.model (), ind);
Expand All @@ -784,7 +784,7 @@ QModelIndex Desktopwidget::doNewDir(const QString& name, QString& path)
QModelIndex index = _dir->menuGetModelIndex ();
QModelIndex src_ind = _dir_proxy->mapToSource(index);
QString parentPath = _model->data(src_ind,
QDirModel::FilePathRole).toString();
Dirmodel::FilePathRole).toString();
path = parentPath + QDir::separator() + name;

Operation op("Creating directory", 0, this);
Expand Down Expand Up @@ -865,9 +865,9 @@ void Desktopwidget::dirSelected(const QModelIndex &index, bool allow_undo,
bool force_change)
{
QModelIndex src_ind = _dir_proxy->mapToSource(index);
QString path = _model->data(src_ind, QDirModel::FilePathRole).toString();
QString path = _model->data(src_ind, Dirmodel::FilePathRole).toString();
QModelIndex root = _model->findRoot(src_ind);
QString root_path = _model->data(root, QDirModel::FilePathRole).toString();
QString root_path = _model->data(root, Dirmodel::FilePathRole).toString();

//qDebug() << "dirSelected" << path << _contents->getDirPath();

Expand Down Expand Up @@ -1284,7 +1284,7 @@ void Desktopwidget::moveToFolder(void)
// Wait for Move::accept() to be happy before continuing
if (diag.exec()) {
QModelIndex dest_ind = _dir_proxy->mapToSource(diag._ind);
QString destDir = _model->data(dest_ind, QDirModel::FilePathRole).toString();
QString destDir = _model->data(dest_ind, Dirmodel::FilePathRole).toString();

// qDebug() << "destDir" << destDir;

Expand Down Expand Up @@ -1562,7 +1562,7 @@ const QString Desktopwidget::getRootDirectory()
QModelIndex root = getRootIndex();
if (root == QModelIndex())
return "";
QString root_path = _model->data(root, QDirModel::FilePathRole).toString();
QString root_path = _model->data(root, Dirmodel::FilePathRole).toString();

return root_path;
}
Expand Down
1 change: 0 additions & 1 deletion desktopwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ X-Comment: On Debian GNU/Linux systems, the complete text of the GNU General
*/

class QCheckBox;
class QDirModel;
class QKeyEventTransition;
class QLineEdit;
class QSplitter;
Expand Down
Loading