From a276acd4e0c8031fdef41f11a4fa2285b671207d Mon Sep 17 00:00:00 2001 From: Louie S Date: Mon, 19 Feb 2024 15:58:23 -0500 Subject: Set config creation --- src/settings.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/settings.cpp (limited to 'src/settings.cpp') diff --git a/src/settings.cpp b/src/settings.cpp new file mode 100644 index 0000000..4fe67d1 --- /dev/null +++ b/src/settings.cpp @@ -0,0 +1,14 @@ +#include +#include +#include + +#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(); +} -- cgit