aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/kitmanager.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@gmail.com>2014-10-23 22:51:23 +0200
committerhjk <hjk121@nokiamail.com>2014-10-24 08:17:16 +0200
commit386f302995ee7a22a550cdee85f782b0c284f3da (patch)
tree70f6bcc94004f275761d5c0a8dda2a6ca0b680ba /src/plugins/projectexplorer/kitmanager.h
parent6c139bd62b4e969493db616f16604a2c54aa1b8f (diff)
KitManager: Introduce sortedKits() method
This allows to delay the evaluation of displayNames (which might be expensive now that we expand them) to when a sorted list is actually needed, thus speeding up the start-up of Qt Creator. Change-Id: I78273592bc0f8311372f8d799faf9e1289759013 Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/projectexplorer/kitmanager.h')
-rw-r--r--src/plugins/projectexplorer/kitmanager.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/kitmanager.h b/src/plugins/projectexplorer/kitmanager.h
index f2c723df32..094af9307d 100644
--- a/src/plugins/projectexplorer/kitmanager.h
+++ b/src/plugins/projectexplorer/kitmanager.h
@@ -133,6 +133,7 @@ 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);