summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-06-16 21:30:24 +0200
committerMikaël Capelle <capelle.mikael@gmail.com>2020-06-16 21:30:24 +0200
commit8c410aff33395daf607ae8a1c62b8be70943ba4d (patch)
tree12838e90319d44d319ddea4274ae36033d5713dc /src/mainwindow.cpp
parent331fcad9f351d5dba53397d5b9b12bea43536ce3 (diff)
Clean notification of userInterfaceInitialized between MainWindow and OrganizerCore.
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index b3e78121..91c906a1 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -502,6 +502,7 @@ MainWindow::MainWindow(Settings &settings
m_Tutorial.expose("espList", m_OrganizerCore.pluginList());
m_OrganizerCore.setUserInterface(this);
+ connect(this, &MainWindow::userInterfaceInitialized, &m_OrganizerCore, &OrganizerCore::userInterfaceInitialized);
for (const QString &fileName : m_PluginContainer.pluginFileNames()) {
installTranslator(QFileInfo(fileName).baseName());
}
@@ -1384,7 +1385,7 @@ void MainWindow::showEvent(QShowEvent *event)
updateProblemsButton();
// Notify plugin that the UI is initialized:
- m_OrganizerCore.userInterfaceInitialized(this);
+ emit userInterfaceInitialized();
}
}
@@ -2267,7 +2268,7 @@ void MainWindow::storeSettings()
s.interface().setFilterOptions(FilterWidget::options());
}
-QWidget* MainWindow::qtWidget()
+QMainWindow* MainWindow::mainWindow()
{
return this;
}