diff options
Diffstat (limited to 'gui/init.hpp')
-rw-r--r-- | gui/init.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gui/init.hpp b/gui/init.hpp index 1142ff24..28ff55c7 100644 --- a/gui/init.hpp +++ b/gui/init.hpp @@ -3,11 +3,10 @@ #include "export.hpp" #include <functional> +#include <memory> #include <QWidget> -int OTR_GUI_EXPORT otr_main(int argc, char** argv, std::function<QWidget*()> make_main_window); - -// XXX TODO need split MainWindow into mixins each implementing part of the functionality +OTR_GUI_EXPORT int otr_main(int argc, char** argv, std::function<std::unique_ptr<QWidget>()> const& make_main_window); template<typename F> auto run_application(int argc, char** argv, F&& fun) |