From 573a36b93f0334f5395c510519797c48f17f582f Mon Sep 17 00:00:00 2001 From: Simon De Backer Date: Tue, 9 Jun 2020 23:16:52 +0200 Subject: [PATCH] fix deprecated warning QDirModel This class is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code. Use QFileSystemModel instead. This class was introduced in Qt 4.4 --- sources/exportpropertieswidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/exportpropertieswidget.cpp b/sources/exportpropertieswidget.cpp index 97e614aaf..9b93853a2 100644 --- a/sources/exportpropertieswidget.cpp +++ b/sources/exportpropertieswidget.cpp @@ -16,6 +16,7 @@ along with QElectroTech. If not, see . */ #include "exportpropertieswidget.h" +#include /** Constructeur @@ -126,7 +127,7 @@ void ExportPropertiesWidget::build() { dirpath_label = new QLabel(tr("Dossier cible :"), this); dirpath = new QLineEdit(this); QCompleter *completer = new QCompleter(this); - completer -> setModel(new QDirModel(completer)); + completer -> setModel(new QFileSystemModel(completer)); dirpath -> setCompleter(completer); button_browse = new QPushButton(tr("Parcourir"), this); hboxLayout -> addWidget(dirpath_label);