diff --git a/sources/elementdialog.cpp b/sources/elementdialog.cpp index 2cc2e6c34..503aefc6b 100644 --- a/sources/elementdialog.cpp +++ b/sources/elementdialog.cpp @@ -19,6 +19,7 @@ #include "ElementsCollection/elementcollectionitem.h" #include "ElementsCollection/elementscollectionmodel.h" +#include "ElementsCollection/elementstreeview.h" #include "qetapp.h" #include "qetmessagebox.h" #include "qfilenameedit.h" @@ -88,7 +89,7 @@ void ElementDialog::setUpWidget() layout->addWidget(new QLabel(label_)); - m_tree_view = new QTreeView(this); + m_tree_view = new ElementsTreeView(this); m_model = new ElementsCollectionModel(m_tree_view); diff --git a/sources/newelementwizard.cpp b/sources/newelementwizard.cpp index 834ac98a6..afa30fa9e 100644 --- a/sources/newelementwizard.cpp +++ b/sources/newelementwizard.cpp @@ -19,6 +19,7 @@ #include "ElementsCollection/elementcollectionitem.h" #include "ElementsCollection/elementscollectionmodel.h" +#include "ElementsCollection/elementstreeview.h" #include "NameList/ui/namelistwidget.h" #include "editor/ui/qetelementeditor.h" #include "qetmessagebox.h" @@ -85,7 +86,7 @@ QWizardPage *NewElementWizard::buildStep1() page -> setSubTitle(tr("Sélectionnez une catégorie dans laquelle enregistrer le nouvel élément.", "wizard page subtitle")); QVBoxLayout *layout = new QVBoxLayout(); - m_tree_view = new QTreeView(this); + m_tree_view = new ElementsTreeView(this); m_model = new ElementsCollectionModel(m_tree_view); m_model->hideElement();