Qt5: fix deprecation warnings for Qt 5.15

+ replace QDirModel with QFileSystemModel
+ QProcess::start(QString, OpenMode) is deprecated
+ QByteArray::append is deprecated
+ QPixmap* QLabel::pixmap() is deprecated
This commit is contained in:
wmayer
2020-10-15 16:50:11 +02:00
parent 1d289252c4
commit 4a10f0c381
9 changed files with 28 additions and 16 deletions

View File

@@ -36,7 +36,7 @@
# include <QTimer>
#endif
#include <QDirModel>
#include <QFileSystemModel>
#include <Base/Console.h>
#include <App/Document.h>
@@ -56,8 +56,7 @@ using namespace Gui;
ProjectWidget::ProjectWidget(QWidget* parent)
: QTreeView(parent)
{
fileModel = new QDirModel(this);
fileModel->setSorting(QDir::DirsFirst | QDir::Type);
fileModel = new QFileSystemModel(this);
setModel(fileModel);
}