diff options
Diffstat (limited to 'src/kaiman.cc')
-rw-r--r-- | src/kaiman.cc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/kaiman.cc b/src/kaiman.cc index 82dcfdd..75d3035 100644 --- a/src/kaiman.cc +++ b/src/kaiman.cc @@ -27,7 +27,16 @@ */ #include <QApplication> +#include <QLocale> + #include "mainwindow.h" +#include <locale.h> + +void __attribute__ ((constructor)) premain() +{ + printf("premain()\n"); + printf("locale: %s\n", setlocale(LC_ALL, "da_DK")); +} int main(int argc, char *argv[]) { @@ -36,10 +45,12 @@ int main(int argc, char *argv[]) return 1; } + // QLocale::setDefault(QLocale(QLocale::Danish, QLocale::Denmark)); + QApplication app(argc, argv); MainWindow wnd(argv[1]); - // wnd.show(); + wnd.showMaximized(); return app.exec(); } |