+#ifndef Q_WS_QWS
+ QSettings();
+#else
+ // FIXME sandboxDir() is not currently working correctly...
+ //if(Qtopia::sandboxDir().isEmpty()) QSettings();
+ //else QSettings(Qtopia::sandboxDir() + "/etc/QuasselIRC.conf", QSettings::NativeFormat);
+ // ...so we have to use a workaround:
+ QString appPath = QCoreApplication::applicationFilePath();
+ if(appPath.startsWith(Qtopia::packagePath())) {
+ QString sandboxPath = appPath.left(Qtopia::packagePath().length() + 32);
+ QSettings(sandboxPath + "/etc/QuasselIRC.conf", QSettings::IniFormat);
+ qDebug() << sandboxPath + "/etc/QuasselIRC.conf";
+ } else {
+ QSettings();
+ }
+#endif