From 4510d1ef841a76aeca49c883bea9d516febd10c3 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Tue, 18 Dec 2012 16:00:21 +0100 Subject: [PATCH] Update examples when default kit changes. Otherwise one had to close and reopen Qt Creator. Change-Id: If59d5e01665082e0a69e02c686809f92d86180bf Reviewed-by: Thomas Hartmann --- src/plugins/qtsupport/exampleslistmodel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/qtsupport/exampleslistmodel.cpp b/src/plugins/qtsupport/exampleslistmodel.cpp index 311fd5f5856..de819ce19bf 100644 --- a/src/plugins/qtsupport/exampleslistmodel.cpp +++ b/src/plugins/qtsupport/exampleslistmodel.cpp @@ -81,6 +81,8 @@ ExamplesListModel::ExamplesListModel(QObject *parent) : SLOT(helpInitialized())); connect(QtVersionManager::instance(), SIGNAL(qtVersionsChanged(QList,QList,QList)), this, SLOT(handleQtVersionsChanged())); + connect(ProjectExplorer::KitManager::instance(), SIGNAL(defaultkitChanged()), + SLOT(handleQtVersionsChanged())); } static inline QString fixStringForTags(const QString &string)