Initialize quill only if we are building for harmattan
authorMohammed Sameer <msameer@foolab.org>
Fri, 26 Jul 2013 00:00:45 +0000 (03:00 +0300)
committerMohammed Sameer <msameer@foolab.org>
Fri, 26 Jul 2013 00:00:45 +0000 (03:00 +0300)
src/platformsettings.cpp

index 536b9e4..c566fde 100644 (file)
 #include "platformsettings.h"
 #include <QDir>
 #include <QSettings>
+#ifdef HARMATTAN
 #include <Quill>
 #include "quillitem.h"
+#endif
 
 #define PATH "/usr/share/cameraplus/config/cameraplus.ini"
 
@@ -82,6 +84,7 @@ QSize PlatformSettings::landscapeSize(const QSize& size) {
 }
 
 void PlatformSettings::init() {
+#ifdef HARMATTAN
   // How we create thumbnails for portrait is really messy.
   // I am sure there is a better way to tell Quill to generate proper
   // portrait thumbnails without having 2 display levels but I don't know how.
@@ -106,6 +109,7 @@ void PlatformSettings::init() {
   QString tempPath = temporaryFilePath();
   QDir().mkpath(tempPath);
   Quill::setTemporaryFilePath(tempPath);
+#endif
 }
 
 PlatformSettings::Service PlatformSettings::service(const QString& id) {