summaryrefslogtreecommitdiff
path: root/src/settings.cpp
blob: 4fe67d1aa35778b7d4a9f5c6de5e5a5aed13e9e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <QDir>
#include <QSettings>
#include <QStandardPaths>

#include "settings.h"

void Settings::createConfig() {
	QSettings settings;
	QDir local_data_dir(QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation));

	settings.beginGroup("paths");
	settings.setValue("db_path", local_data_dir.filePath("data.db"));
	settings.endGroup();
}