From 0432f5c11413ee4a790dfe1328316a2fb4ea7541 Mon Sep 17 00:00:00 2001 From: Mohammed Sameer Date: Fri, 26 Jul 2013 03:00:45 +0300 Subject: [PATCH] Initialize quill only if we are building for harmattan --- src/platformsettings.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/platformsettings.cpp b/src/platformsettings.cpp index 536b9e4..c566fde 100644 --- a/src/platformsettings.cpp +++ b/src/platformsettings.cpp @@ -21,8 +21,10 @@ #include "platformsettings.h" #include #include +#ifdef HARMATTAN #include #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) { -- 2.25.1