diff options
author | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-04-20 14:18:54 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-04-20 15:00:32 +0000 |
commit | 465cf130d71a3beaf9384af3871e3a1a1bcf1499 (patch) | |
tree | e7cdbc9fddf5fd940910145543a3061e1358a844 /src/plugins/projectexplorer/kitmanager.h | |
parent | cb350bfeb26afaa047f74232b7afc3f143684ef6 (diff) |
KitManager: Enable sorting on the target setup page
Add a separate method to sort lists of kits and remove the sortedKits()
method again.
You should not use the sorted list whenever possible, so requireing a
two-step process to get that is not too hard. And it allows to sort
sub-sets of all kits, which is exactly what we might have on the
TargetSetupPage.
Task-number: QTCREATORBUG-13549
Change-Id: Iaa8443bcc8c321425daa13a1fb1e024d18939306
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
Diffstat (limited to 'src/plugins/projectexplorer/kitmanager.h')
-rw-r--r-- | src/plugins/projectexplorer/kitmanager.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/kitmanager.h b/src/plugins/projectexplorer/kitmanager.h index faa9bdbc82..6f53f39574 100644 --- a/src/plugins/projectexplorer/kitmanager.h +++ b/src/plugins/projectexplorer/kitmanager.h @@ -134,7 +134,6 @@ public: ~KitManager(); static QList<Kit *> kits(); - static QList<Kit *> sortedKits(); // Use kits() whenever possible as that is cheaper! static QList<Kit *> matchingKits(const KitMatcher &matcher); static Kit *find(Core::Id id); static Kit *find(const KitMatcher &matcher); @@ -157,6 +156,8 @@ public: static QString displayNameForPlatform(const QString &platform); static Core::FeatureSet availableFeatures(const QString &platform); + static QList<Kit *> sortKits(const QList<Kit *> kits); // Avoid sorting whenever possible! + public slots: void saveKits(); |