ProjectExplorer: Use Utils::TreeModel for AddNewModel

Less code.

Change-Id: If02cf7685a1b37be4887ebe21a9c8b55079308f2
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
hjk
2015-01-07 23:59:29 +01:00
committed by hjk
parent 384641d798
commit 62f19feef6
7 changed files with 85 additions and 315 deletions

View File

@@ -44,10 +44,11 @@ class QModelIndex;
QT_END_NAMESPACE
namespace Core { class IVersionControl; }
namespace Utils { class TreeModel; }
namespace ProjectExplorer {
namespace Internal {
class AddNewModel;
class AddNewTree;
namespace Ui { class WizardPage; }
@@ -92,7 +93,7 @@ private slots:
private:
void setAdditionalInfo(const QString &text);
void setAddingSubProject(bool addingSubProject);
void setModel(AddNewModel *model);
void setModel(Utils::TreeModel *model);
void setBestNode(ProjectExplorer::Internal::AddNewTree *tree);
void setVersionControls(const QStringList &);
void setProjectToolTip(const QString &);
@@ -100,7 +101,7 @@ private:
Ui::WizardPage *m_ui;
QStringList m_projectToolTips;
AddNewModel *m_model;
Utils::TreeModel *m_model;
QList<Core::IVersionControl*> m_activeVersionControls;
QString m_commonDirectory;