diff options
author | Eike Ziller <eike.ziller@qt.io> | 2022-05-04 18:12:55 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2022-05-10 13:16:22 +0000 |
commit | 42e072f15968e354c981c7da499c230634189bf5 (patch) | |
tree | 2fcba8fcaf007755b3c8c6ab756778def662f690 /src/plugins/cppeditor/cppeditorwidget.cpp | |
parent | b5b9b7e32c26245ad5f6d41a31be036f30088ea3 (diff) |
Move MinimizableInfoBars from CppEditorDocument to IDocument
Similar to the InfoBar.
The only thing that an editor implementation needs to do is to set a
settings group and the possible info bars in the document constructor.
And later call document->minimizableInfoBars()->setInfoVisible(id,
visible) to manage the state.
Change-Id: I23afb3639b70b1bfccd424579da018280a7fe2cb
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cppeditorwidget.cpp')
-rw-r--r-- | src/plugins/cppeditor/cppeditorwidget.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/plugins/cppeditor/cppeditorwidget.cpp b/src/plugins/cppeditor/cppeditorwidget.cpp index 9a73d1f2e8..7c09724eee 100644 --- a/src/plugins/cppeditor/cppeditorwidget.cpp +++ b/src/plugins/cppeditor/cppeditorwidget.cpp @@ -552,10 +552,6 @@ void CppEditorWidget::finalizeInitialization() insertExtraToolBarWidget(TextEditorWidget::Left, d->m_preprocessorButton); } - // Toolbar: Actions to show minimized info bars - d->m_cppEditorDocument->minimizableInfoBars().createShowInfoBarActions( - [this](QWidget *w) { return this->insertExtraToolBarWidget(TextEditorWidget::Left, w); }); - d->m_outlineTimer.setInterval(5000); d->m_outlineTimer.setSingleShot(true); connect(&d->m_outlineTimer, &QTimer::timeout, this, [this] { |