summaryrefslogtreecommitdiffstats
path: root/qt-gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-gui.cpp')
-rw-r--r--qt-gui.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp
index 745457763..86731bb36 100644
--- a/qt-gui.cpp
+++ b/qt-gui.cpp
@@ -1864,6 +1864,14 @@ QStringList MainWindow::fileNameFilters() const
}
#endif /* NEEDS_TO_MOVE_TO_QT_UI */
+void init_qt_ui(int *argcp, char ***argvp)
+{
+ application = new QApplication(*argcp, *argvp);
+ application->installTranslator(new Translator(application));
+ MainWindow *window = new MainWindow();
+ window->show();
+}
+
void init_ui(int *argcp, char ***argvp)
{
GtkWidget *win;
@@ -1877,11 +1885,6 @@ void init_ui(int *argcp, char ***argvp)
GtkSettings *settings;
GtkUIManager *ui_manager;
- application = new QApplication(*argcp, *argvp);
- application->installTranslator(new Translator(application));
- MainWindow *window = new MainWindow();
- window->show();
-
gtk_init(argcp, argvp);
settings = gtk_settings_get_default();
gtk_settings_set_long_property(settings, "gtk-tooltip-timeout", 10, "subsurface setting");