Core: Remove #include <QMainWindow> from icore.h

Adapt users; also use dialogParent() instead of mainWindow() were
appropriate.

Change-Id: Ib60b118f05c986a70657446c5b2937074243bb5c
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2022-07-22 13:27:19 +02:00
parent f794bb0acf
commit aed29ad8c3
15 changed files with 25 additions and 18 deletions

View File

@@ -732,7 +732,7 @@ void LoggingViewManagerWidget::setCategoryColor(const QString &category, const Q
void LoggingViewer::showLoggingView()
{
ActionManager::command(Constants::LOGGER)->action()->setEnabled(false);
auto widget = new LoggingViewManagerWidget(ICore::mainWindow());
auto widget = new LoggingViewManagerWidget(ICore::dialogParent());
QObject::connect(widget, &QDialog::finished, widget, [widget] () {
ActionManager::command(Constants::LOGGER)->action()->setEnabled(true);
// explicitly disable manager again