Skip to content
Snippets Groups Projects
Commit 55c3e3c7 authored by sanketmarkan's avatar sanketmarkan Committed by Hugo Beauzée-Luyssen
Browse files

removed check for qt version older than 5


Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent a7a1cc0e
No related branches found
No related tags found
No related merge requests found
......@@ -27,11 +27,7 @@
#include <QXmlStreamWriter>
#include <QtGlobal>
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
# include <QStandardPaths>
#else
# include <QDesktopServices>
#endif
#ifdef Q_OS_WIN
# include <windows.h>
......@@ -46,14 +42,8 @@
EffectsEngine::EffectsEngine()
{
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
m_cache = new QSettings( QStandardPaths::writableLocation(
QStandardPaths::CacheLocation ) + "/effects",
#else
m_cache = new QSettings( QDesktopServices::storageLocation(
QDesktopServices::CacheLocation ) + "/effects",
#endif
QSettings::IniFormat, this );
m_cache->setFallbacksEnabled( false );
//Create the names entry. A bit ugly but faster (I guess...) afterward.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment