summaryrefslogtreecommitdiff
path: root/saltoqd/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'saltoqd/main.cpp')
-rw-r--r--saltoqd/main.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/saltoqd/main.cpp b/saltoqd/main.cpp
index 570f6c4..556c389 100644
--- a/saltoqd/main.cpp
+++ b/saltoqd/main.cpp
@@ -1,10 +1,18 @@
-#include <QtCore>
-#include <QtDBus>
+#include <QtGui/QGuiApplication>
+#include <QtGui/QFontDatabase>
+#include <QtDBus/QDBusConnection>
+#include "global.h"
#include "toqmanager.h"
Q_DECL_EXPORT int main(int argc, char **argv)
{
- QCoreApplication app(argc, argv);
+ QGuiApplication app(argc, argv);
+
+ QFontDatabase::addApplicationFont(RES_PATH "/Q-Light.otf");
+ int id = QFontDatabase::addApplicationFont(RES_PATH "/Q-Regular.otf");
+ qDebug() << QFontDatabase::applicationFontFamilies(id);
+ QFontDatabase::addApplicationFont(RES_PATH "/Q-Semibold.otf");
+ QFontDatabase::addApplicationFont(RES_PATH "/Q-Bold.otf");
QScopedPointer<Settings> settings(new Settings("/apps/saltoq"));
QScopedPointer<ToqManager> manager(new ToqManager(settings.data()));