mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
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:
committed by
Laurent Trinques
parent
e61cbfe30a
commit
573a36b93f
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user