summaryrefslogtreecommitdiff
path: root/src/plugins/qtsupport/qtsupportplugin.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2020-06-17 12:23:44 +0200
committerEike Ziller <eike.ziller@qt.io>2020-06-18 06:39:54 +0000
commit7c5ed6f7d99362af743f30916d031d441abc1984 (patch)
tree7b8ef47da6e256e79f2e0034c0334350907c3057 /src/plugins/qtsupport/qtsupportplugin.cpp
parentc70c6ded30610afff34447a65da905e993e0e9b6 (diff)
downloadqt-creator-7c5ed6f7d99362af743f30916d031d441abc1984.tar.gz
Move InfoBar to Utils
The only reason it was required to be in Core plugin, was its use of Id, which now is available in Utils. Change-Id: I66ce863c24924e6448d339b3422538a7fe167336 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/qtsupport/qtsupportplugin.cpp')
-rw-r--r--src/plugins/qtsupport/qtsupportplugin.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/qtsupport/qtsupportplugin.cpp b/src/plugins/qtsupport/qtsupportplugin.cpp
index b389e8cf29..38c83d11e8 100644
--- a/src/plugins/qtsupport/qtsupportplugin.cpp
+++ b/src/plugins/qtsupport/qtsupportplugin.cpp
@@ -40,7 +40,6 @@
#include "uicgenerator.h"
#include <coreplugin/icore.h>
-#include <coreplugin/infobar.h>
#include <coreplugin/jsexpander.h>
#include <projectexplorer/jsonwizard/jsonwizardfactory.h>
@@ -50,6 +49,7 @@
#include <projectexplorer/runcontrol.h>
#include <projectexplorer/target.h>
+#include <utils/infobar.h>
#include <utils/macroexpander.h>
const char kHostBins[] = "CurrentProject:QT_HOST_BINS";
@@ -126,12 +126,12 @@ static void askAboutQtInstallation()
|| !ICore::infoBar()->canInfoBeAdded(kLinkWithQtInstallationSetting))
return;
- InfoBarEntry info(
+ Utils::InfoBarEntry info(
kLinkWithQtInstallationSetting,
QtSupportPlugin::tr(
"Link with a Qt installation to automatically register Qt versions and kits? To do "
"this later, select Options > Kits > Qt Versions > Link with Qt."),
- InfoBarEntry::GlobalSuppression::Enabled);
+ Utils::InfoBarEntry::GlobalSuppression::Enabled);
info.setCustomButtonInfo(QtSupportPlugin::tr("Link with Qt"), [] {
ICore::infoBar()->removeInfo(kLinkWithQtInstallationSetting);
ICore::infoBar()->globallySuppressInfo(kLinkWithQtInstallationSetting);