aboutsummaryrefslogtreecommitdiff
path: root/test/config
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-12-20 12:53:40 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2017-12-20 12:53:40 +0100
commit3323b83af3bc0cd4feff0e0463718e77d4eabef7 (patch)
treebea0abe418c808f8f089a642e098c993b29af143 /test/config
parentChanged license from GPL3+ to GPL3 (diff)
downloadsmolbote-3323b83af3bc0cd4feff0e0463718e77d4eabef7.tar.xz
Can now open links in new tab
Diffstat (limited to 'test/config')
-rw-r--r--test/config/config.qrc5
-rw-r--r--test/config/main.cpp28
-rw-r--r--test/config/poi.cfg1
3 files changed, 0 insertions, 34 deletions
diff --git a/test/config/config.qrc b/test/config/config.qrc
deleted file mode 100644
index ab60a1b..0000000
--- a/test/config/config.qrc
+++ /dev/null
@@ -1,5 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>poi.cfg</file>
- </qresource>
-</RCC>
diff --git a/test/config/main.cpp b/test/config/main.cpp
deleted file mode 100644
index 7be84d0..0000000
--- a/test/config/main.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * This file is part of smolbote. It's copyrighted by the contributors recorded
- * in the version control history of the file, available from its original
- * location: git://neueland.iserlohn-fortress.net/smolbote.git
- *
- * SPDX-License-Identifier: GPL-3.0
- */
-
-#include <iostream>
-#include "settings/configuration.h"
-
-#include <QFile>
-
-int main(int argc, char** argv)
-{
- Configuration *settings = new Configuration();
-
- // Use QFile so we can easily access qrc:
- QFile defaultCfg(":/poi.cfg");
- defaultCfg.open(QIODevice::ReadOnly);
-
- std::cout << "UserCfg: " << (settings->readUserConfiguration("file.cfg") ? "true" : "false") << std::endl;
- std::cout << "DefaultCfg: " << (settings->readDefaultConfiguration(defaultCfg.readAll().toStdString()) ? "true" : "false") << std::endl;
-
- std::cout << "test = " << settings->value<std::string>("test").value_or("unknown") << std::endl;
-
- return 0;
-}
diff --git a/test/config/poi.cfg b/test/config/poi.cfg
deleted file mode 100644
index 5fd6f29..0000000
--- a/test/config/poi.cfg
+++ /dev/null
@@ -1 +0,0 @@
-test = "value";