forked from qt-creator/qt-creator
Remove leftover code for header diagnostic info bar
ClangCodeModel used to show an info bar about errors in headers in the
editor, but that was removed. Remove the remaining infrastructure that
was used to show them.
Amends b52fac7148
Change-Id: Id89f2bcb7778245f468923d29c577bf1ca68ee75
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -45,7 +45,6 @@ class MinimizableInfoBars : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
using DiagnosticWidgetCreator = std::function<QWidget *()>;
|
||||
using ActionCreator = std::function<QAction *(QWidget *widget)>;
|
||||
using Actions = QHash<Utils::Id, QAction *>;
|
||||
|
||||
@@ -54,26 +53,20 @@ public:
|
||||
public:
|
||||
explicit MinimizableInfoBars(Utils::InfoBar &infoBar, QObject *parent = nullptr);
|
||||
|
||||
// Expected call order: processHasProjectPart(), processHeaderDiagnostics()
|
||||
void processHasProjectPart(bool hasProjectPart);
|
||||
void processHeaderDiagnostics(const DiagnosticWidgetCreator &diagnosticWidgetCreator);
|
||||
|
||||
signals:
|
||||
void showAction(const Utils::Id &id, bool show);
|
||||
|
||||
private:
|
||||
void updateNoProjectConfiguration();
|
||||
void updateHeaderErrors();
|
||||
|
||||
void addNoProjectConfigurationEntry(const Utils::Id &id);
|
||||
void addHeaderErrorEntry(const Utils::Id &id,
|
||||
const DiagnosticWidgetCreator &diagnosticWidgetCreator);
|
||||
|
||||
private:
|
||||
Utils::InfoBar &m_infoBar;
|
||||
|
||||
bool m_hasProjectPart = true;
|
||||
DiagnosticWidgetCreator m_diagnosticWidgetCreator;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user