New dialog: Replace "Preferred wizards" concept by remembering the last category

Reviewed-by: trustme
This commit is contained in:
Daniel Molkentin
2010-05-19 18:30:45 +02:00
parent 25a4429666
commit ebb8faae6d
10 changed files with 30 additions and 59 deletions

View File

@@ -34,6 +34,7 @@
#include <QtGui/QDialog>
#include <QtCore/QList>
#include <QtCore/QModelIndex>
QT_BEGIN_NAMESPACE
class QAbstractProxyModel;
@@ -41,7 +42,6 @@ class QPushButton;
class QStandardItem;
class QStandardItemModel;
class QStringList;
class QModelIndex;
QT_END_NAMESPACE
namespace Core {
@@ -61,7 +61,6 @@ public:
virtual ~NewDialog();
void setWizards(QList<IWizard*> wizards);
void setPreferredWizardKinds(IWizard::WizardKinds kinds);
Core::IWizard *showDialog();
@@ -77,8 +76,8 @@ private:
QStandardItemModel *m_model;
QAbstractProxyModel *m_proxyModel;
QPushButton *m_okButton;
IWizard::WizardKinds m_preferredWizardKinds;
QPixmap m_dummyIcon;
QList<QStandardItem*> m_categoryItems;
};
} // namespace Internal