Now the application compiles for QT5.
[toast/confclerk.git] / src / sql / sqlengine.cpp
index 0c16ab7..d5245be 100644 (file)
@@ -23,9 +23,9 @@
 #include <QSqlRecord>
 #include <QVariant>
 #include <QDateTime>
+#include <QStandardPaths>
 
 #include <QDir>
-#include <QDesktopServices>
 #include "sqlengine.h"
 #include "track.h"
 #include "conference.h"
@@ -36,7 +36,7 @@ const QString DATE_FORMAT ("yyyy-MM-dd");
 const QString TIME_FORMAT ("hh:mm");
 
 SqlEngine::SqlEngine(QObject *aParent): QObject(aParent) {
-    QDir dbPath(QDesktopServices::storageLocation(QDesktopServices::DataLocation));
+    QDir dbPath(QStandardPaths::writableLocation(QStandardPaths::DataLocation));
     dbFilename = dbPath.absoluteFilePath("ConfClerk.sqlite");
 }