diff options
-rw-r--r-- | plugingui/mainwindow.h | 2 | ||||
-rw-r--r-- | plugingui/testmain.cc | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/plugingui/mainwindow.h b/plugingui/mainwindow.h index 89e323a..4b5dad1 100644 --- a/plugingui/mainwindow.h +++ b/plugingui/mainwindow.h @@ -51,10 +51,10 @@ public: //! Notify when window is closing. Notifier<> closeNotifier; + void closeEventHandler(); private: void sizeChanged(std::size_t width, std::size_t height); - void closeEventHandler(); // From Widget void repaintEvent(RepaintEvent* repaintEvent) override final; diff --git a/plugingui/testmain.cc b/plugingui/testmain.cc index 0bbd21f..c565a38 100644 --- a/plugingui/testmain.cc +++ b/plugingui/testmain.cc @@ -47,6 +47,8 @@ int main() Settings settings; GUI::MainWindow main_window(settings, parent.getNativeWindowHandle()); + CONNECT(&parent, eventHandler()->closeNotifier, + &main_window, &GUI::MainWindow::closeEventHandler); parent.show(); main_window.show(); |