Ignore:
Timestamp:
08/30/17 21:15:52 (4 years ago)
Author:
gregor herrmann <gregor@…>
Branches:
master, qt5
Children:
30edeb7
Parents:
809b5e5
Message:

ifdef qt4 and qt5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sql/sqlengine.cpp

    r809b5e5 r79a7671  
    2424#include <QVariant>
    2525#include <QDateTime>
     26#include "qglobal.h"
     27#if QT_VERSION >= 0x050000
    2628#include <QStandardPaths>
     29#else
     30#include <QDesktopServices>
     31#endif
    2732
    2833#include <QDir>
     
    3742
    3843SqlEngine::SqlEngine(QObject *aParent): QObject(aParent) {
     44#if QT_VERSION >= 0x050000
    3945    QDir dbPath(QStandardPaths::writableLocation(QStandardPaths::DataLocation));
     46#else
     47    QDir dbPath(QDesktopServices::storageLocation(QDesktopServices::DataLocation));
     48#endif
    4049    dbFilename = dbPath.absoluteFilePath("ConfClerk.sqlite");
    4150}
Note: See TracChangeset for help on using the changeset viewer.