diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-06-16 15:39:59 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-16 15:39:59 -0400 |
| commit | 4ae95e21ad77256cb9fe2942a302bbcdda04ef30 (patch) | |
| tree | d6a017fe88ae98c5f478e9497c5b36db5584bb69 /src/mainwindow.cpp | |
| parent | 7d553557a64e9a3eb6656a09cbe70103f576b3b9 (diff) | |
| parent | 8c410aff33395daf607ae8a1c62b8be70943ba4d (diff) | |
Merge pull request #1135 from Holt59/new-iorganizer-callbacks
Update for new organizer callbacks.
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index fef69010..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()); } @@ -1382,6 +1383,9 @@ void MainWindow::showEvent(QShowEvent *event) m_OrganizerCore.settings().nexus().registerAsNXMHandler(false); m_WasVisible = true; updateProblemsButton(); + + // Notify plugin that the UI is initialized: + emit userInterfaceInitialized(); } } @@ -2264,7 +2268,7 @@ void MainWindow::storeSettings() s.interface().setFilterOptions(FilterWidget::options()); } -QWidget* MainWindow::qtWidget() +QMainWindow* MainWindow::mainWindow() { return this; } |
