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>
This commit is contained in:
Eike Ziller
2020-06-17 12:23:44 +02:00
parent c70c6ded30
commit 7c5ed6f7d9
41 changed files with 166 additions and 156 deletions

View File

@@ -33,7 +33,7 @@
#include <functional>
namespace Core {
namespace Utils {
class InfoBar;
}
@@ -52,7 +52,7 @@ public:
static Actions createShowInfoBarActions(const ActionCreator &actionCreator);
public:
explicit MinimizableInfoBars(Core::InfoBar &infoBar, QObject *parent = nullptr);
explicit MinimizableInfoBars(Utils::InfoBar &infoBar, QObject *parent = nullptr);
// Expected call order: processHasProjectPart(), processHeaderDiagnostics()
void processHasProjectPart(bool hasProjectPart);
@@ -70,7 +70,7 @@ private:
const DiagnosticWidgetCreator &diagnosticWidgetCreator);
private:
Core::InfoBar &m_infoBar;
Utils::InfoBar &m_infoBar;
bool m_hasProjectPart = true;
DiagnosticWidgetCreator m_diagnosticWidgetCreator;