mirror of
https://github.com/KDE/kasts.git
synced 2024-12-20 04:32:55 +01:00
change path
This commit is contained in:
parent
05965bf39c
commit
be483c951e
@ -45,7 +45,7 @@ int main(int argc, char *argv[])
|
|||||||
QQmlApplicationEngine engine;
|
QQmlApplicationEngine engine;
|
||||||
|
|
||||||
QSqlDatabase db = QSqlDatabase::addDatabase(QStringLiteral("QSQLITE"));
|
QSqlDatabase db = QSqlDatabase::addDatabase(QStringLiteral("QSQLITE"));
|
||||||
QString databasePath = QStandardPaths::writableLocation(QStandardPaths::DataLocation);
|
QString databasePath = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
|
||||||
QDir(databasePath).mkpath(databasePath);
|
QDir(databasePath).mkpath(databasePath);
|
||||||
db.setDatabaseName(databasePath + "/database.db3");
|
db.setDatabaseName(databasePath + "/database.db3");
|
||||||
db.open();
|
db.open();
|
||||||
|
Loading…
Reference in New Issue
Block a user