summaryrefslogtreecommitdiffstats
path: root/src/fbgui/main.cpp
diff options
context:
space:
mode:
authorJonathan Bauer2012-01-31 14:34:18 +0100
committerJonathan Bauer2012-01-31 14:34:18 +0100
commit6493439e032556171ed0dab51edabb2c0eecc72a (patch)
tree2d3be123777e90178df25889d58e37c1155790bf /src/fbgui/main.cpp
parenttestApp.sh fixed, adapt path to your build (diff)
downloadfbgui-6493439e032556171ed0dab51edabb2c0eecc72a.tar.gz
fbgui-6493439e032556171ed0dab51edabb2c0eecc72a.tar.xz
fbgui-6493439e032556171ed0dab51edabb2c0eecc72a.zip
various logging fixes
Diffstat (limited to 'src/fbgui/main.cpp')
-rw-r--r--src/fbgui/main.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/fbgui/main.cpp b/src/fbgui/main.cpp
index d883469..051ce65 100644
--- a/src/fbgui/main.cpp
+++ b/src/fbgui/main.cpp
@@ -55,6 +55,17 @@ int main(int argc, char *argv[]) {
// The third parameter sets the application as the
// GUI-Server (aswell as the GUI-Client).
+ QApplication app(argc, argv, QApplication::GuiServer);
+ app.setOrganizationName("team_projekt_2011");
+ app.setApplicationName("prebootGUI");
+ binPath = QApplication::applicationDirPath();
+
+ QTranslator translator;
+ translator.load(":" + QLocale::system().name());
+ app.installTranslator(&translator);
+
+
+ // LOG4CXX Logger Init
QFileInfo loggingConfInfo = QFileInfo(QDir::home(), ".fbgui.logging.conf");
QString loggingConfigFilePath;
if (loggingConfInfo.exists())
@@ -74,14 +85,6 @@ int main(int argc, char *argv[]) {
BasicConfigurator::configure();
}
- QApplication app(argc, argv, QApplication::GuiServer);
- app.setOrganizationName("team_projekt_2011");
- app.setApplicationName("prebootGUI");
- binPath = QApplication::applicationDirPath();
-
- QTranslator translator;
- translator.load(":" + QLocale::system().name());
- app.installTranslator(&translator);
// parse command line arguments using getopt
QMap<QString, QString> clOpts;