aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/kitmodel.h
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2015-01-08 16:37:51 +0100
committerhjk <hjk@theqtcompany.com>2015-01-13 14:54:48 +0100
commit8d3e6b14ee5c1741bfe1cbe51a66d11a262df9c3 (patch)
tree68f0053e8580b8a8f7fc78ee4140896d93bb604d /src/plugins/projectexplorer/kitmodel.h
parent41d1c7e0e11da97258f0b592a2ce9f64b1f09c36 (diff)
ProjectExplorer: More KitOptionsPage simplification
Change-Id: I07244e510e44a3ee2af5e771450ab6413a5a5c2d Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com> Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/plugins/projectexplorer/kitmodel.h')
-rw-r--r--src/plugins/projectexplorer/kitmodel.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/plugins/projectexplorer/kitmodel.h b/src/plugins/projectexplorer/kitmodel.h
index bd4ef83893..e0d61e47f2 100644
--- a/src/plugins/projectexplorer/kitmodel.h
+++ b/src/plugins/projectexplorer/kitmodel.h
@@ -46,8 +46,8 @@ class KitFactory;
class KitManager;
namespace Internal {
-class KitManagerConfigWidget;
+class KitManagerConfigWidget;
class KitNode;
// --------------------------------------------------------------------------
@@ -62,16 +62,14 @@ public:
explicit KitModel(QBoxLayout *parentLayout, QObject *parent = 0);
Kit *kit(const QModelIndex &);
+ KitNode *kitNode(const QModelIndex &);
QModelIndex indexOf(Kit *k) const;
void setDefaultKit(const QModelIndex &index);
- bool isDefaultKit(const QModelIndex &index);
+ bool isDefaultKit(Kit *k) const;
ProjectExplorer::Internal::KitManagerConfigWidget *widget(const QModelIndex &);
- bool isDirty() const;
- bool isDirty(Kit *k) const;
-
void apply();
void markForRemoval(Kit *k);
@@ -80,15 +78,13 @@ public:
signals:
void kitStateChanged();
-private slots:
+private:
void addKit(ProjectExplorer::Kit *k);
void updateKit(ProjectExplorer::Kit *k);
void removeKit(ProjectExplorer::Kit *k);
void changeDefaultKit();
void validateKitNames();
-private:
- QModelIndex index(KitNode *, int column = 0) const;
KitNode *findWorkingCopy(Kit *k) const;
KitNode *createNode(Kit *k);
void setDefaultNode(KitNode *node);