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
This commit is contained in:
Simon De Backer
2020-06-09 23:16:52 +02:00
committed by Laurent Trinques
parent e61cbfe30a
commit 573a36b93f

View File

@@ -16,6 +16,7 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/
#include "exportpropertieswidget.h"
#include <QFileSystemModel>
/**
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);