Changeset 79a7671 for src/sql/sqlengine.cpp
- Timestamp:
- 08/30/17 21:15:52 (5 years ago)
- Branches:
- master, qt5
- Children:
- 30edeb7
- Parents:
- 809b5e5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sql/sqlengine.cpp
r809b5e5 r79a7671 24 24 #include <QVariant> 25 25 #include <QDateTime> 26 #include "qglobal.h" 27 #if QT_VERSION >= 0x050000 26 28 #include <QStandardPaths> 29 #else 30 #include <QDesktopServices> 31 #endif 27 32 28 33 #include <QDir> … … 37 42 38 43 SqlEngine::SqlEngine(QObject *aParent): QObject(aParent) { 44 #if QT_VERSION >= 0x050000 39 45 QDir dbPath(QStandardPaths::writableLocation(QStandardPaths::DataLocation)); 46 #else 47 QDir dbPath(QDesktopServices::storageLocation(QDesktopServices::DataLocation)); 48 #endif 40 49 dbFilename = dbPath.absoluteFilePath("ConfClerk.sqlite"); 41 50 }
Note: See TracChangeset
for help on using the changeset viewer.