aboutsummaryrefslogtreecommitdiff
path: root/autotests/kconfig_compiler/test_subgroups_main.cpp
diff options
context:
space:
mode:
authorCyril Rossi <cyril.rossi@enioka.com>2020-02-03 13:50:17 +0100
committerCyril Rossi <cyril.rossi@enioka.com>2020-04-22 09:13:09 +0200
commit00213a3a0906f0e1b5fa97a9e8de235a1e3cdcbf (patch)
tree5638cbcaea1c46cf079f7232b1248c00b445d804 /autotests/kconfig_compiler/test_subgroups_main.cpp
parentfb29718d3ac64bdc9e1f2a3d15a506f7798e4a76 (diff)
downloadkconfig-00213a3a0906f0e1b5fa97a9e8de235a1e3cdcbf.tar.gz
kconfig-00213a3a0906f0e1b5fa97a9e8de235a1e3cdcbf.tar.bz2
kconfig_compiler : generate kconfig settings with subgroup
Summary: Following D27059, add `parentGroupName` attribute to `group` element to generate kconfig settings with subgroups Reviewers: ervin, dfaure, #frameworks, meven Reviewed By: ervin, meven Subscribers: apol, meven, kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D27133
Diffstat (limited to 'autotests/kconfig_compiler/test_subgroups_main.cpp')
-rw-r--r--autotests/kconfig_compiler/test_subgroups_main.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/autotests/kconfig_compiler/test_subgroups_main.cpp b/autotests/kconfig_compiler/test_subgroups_main.cpp
new file mode 100644
index 00000000..d034859c
--- /dev/null
+++ b/autotests/kconfig_compiler/test_subgroups_main.cpp
@@ -0,0 +1,32 @@
+/*
+ This file is part of KDE.
+
+ Copyright (C) 2020 Cyril Rossi <cyril.rossi@enioka.com>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#include "test_subgroups.h"
+#include <QGuiApplication>
+
+int main(int argc, char **argv)
+{
+ QGuiApplication app(argc, argv);
+ Q_UNUSED(app);
+ TestSubgroups *t = new TestSubgroups(QStringLiteral("General"), QStringLiteral("Sub"), QStringLiteral("AnotherSub"));
+ delete t;
+ return 0;
+}