Port new dialog from QTreeWidget to QTreeView and QStandardItemModel

This is a preperation towards being able to present the dialog
in a different layout, with slightly improved usability.

Reviewed-by: jbache
This commit is contained in:
Daniel Molkentin
2010-04-13 19:21:14 +02:00
parent e5d562b15d
commit 3bb69df02a
3 changed files with 44 additions and 41 deletions

View File

@@ -37,8 +37,10 @@
QT_BEGIN_NAMESPACE
class QPushButton;
class QTreeWidgetItem;
class QStandardItem;
class QStandardItemModel;
class QStringList;
class QModelIndex;
QT_END_NAMESPACE
namespace Core {
@@ -63,7 +65,7 @@ public:
Core::IWizard *showDialog();
private slots:
void currentItemChanged(QTreeWidgetItem *cat);
void currentItemChanged(const QModelIndex &);
void okButtonClicked();
void updateOkButton();
@@ -71,6 +73,7 @@ private:
Core::IWizard *currentWizard() const;
Ui::NewDialog *m_ui;
QStandardItemModel *m_model;
QPushButton *m_okButton;
IWizard::WizardKinds m_preferredWizardKinds;
};