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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user