r24204 by craig - Replace QDirModel with QFileSystemModel

scribus-commit scribus-commit at lists.scribus.net
Sat Nov 7 22:44:01 UTC 2020


Author: craig
Date: Sat Nov  7 22:44:01 2020
New Revision: 24204

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24204
Log:
Replace QDirModel with QFileSystemModel

Modified:
    trunk/Scribus/scribus/plugins/export/pixmapexport/dialog.cpp
    trunk/Scribus/scribus/plugins/picbrowser/picturebrowser.h

Modified: trunk/Scribus/scribus/plugins/export/pixmapexport/dialog.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24204&path=/trunk/Scribus/scribus/plugins/export/pixmapexport/dialog.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/export/pixmapexport/dialog.cpp	(original)
+++ trunk/Scribus/scribus/plugins/export/pixmapexport/dialog.cpp	Sat Nov  7 22:44:01 2020
@@ -7,7 +7,7 @@
 #include <QCompleter>
 #include <QComboBox>
 #include <QDebug>
-#include <QDirModel>
+#include <QFileSystemModel>
 #include <QFileDialog>
 #include <QImageWriter>
 #include <QToolTip>
@@ -32,7 +32,7 @@
 	setModal(true);
 	prefs = PrefsManager::instance().prefsFile->getPluginContext("pixmapexport");
 
-	QDirModel * dirModel = new QDirModel(this);
+	QFileSystemModel* dirModel = new QFileSystemModel(this);
 	dirModel->setFilter(QDir::AllDirs);
 	outputDirectory->setCompleter(new QCompleter(dirModel, this));
 

Modified: trunk/Scribus/scribus/plugins/picbrowser/picturebrowser.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24204&path=/trunk/Scribus/scribus/plugins/picbrowser/picturebrowser.h
==============================================================================
--- trunk/Scribus/scribus/plugins/picbrowser/picturebrowser.h	(original)
+++ trunk/Scribus/scribus/plugins/picbrowser/picturebrowser.h	Sat Nov  7 22:44:01 2020
@@ -8,7 +8,7 @@
 #define PICTUREBROWSER_H
 
 #include <QCloseEvent>
-#include <QDirModel>
+#include <QFileSystemModel>
 #include "ui_picturebrowser.h"
 
 //previewicon class
@@ -224,7 +224,7 @@
 		ScribusMainWindow* m_ScMW;
 
 		//the dirmodel for the folderbrowser
-		QDirModel folderModel;
+		QFileSystemModel folderModel;
 		//model for QListView containing the previewimages
 		PreviewImagesModel *pModel;
 		//contains the currently selected index in folderModel




More information about the scribus-commit mailing list