aboutsummaryrefslogtreecommitdiff
path: root/autotests/kconfig_compiler/test13main.cpp
diff options
context:
space:
mode:
authorAleix Pol <aleixpol@kde.org>2015-04-26 01:41:29 +0200
committerAleix Pol <aleixpol@kde.org>2015-04-26 01:41:29 +0200
commit97552ff2ecd13eb4398231650e2f719f7a7ba052 (patch)
treeae9d525c7200cc734f1976bc9fc49f16f954976f /autotests/kconfig_compiler/test13main.cpp
parent611ab289b16e100f4842906bb956e479d7c4e7a4 (diff)
downloadkconfig-97552ff2ecd13eb4398231650e2f719f7a7ba052.tar.gz
kconfig-97552ff2ecd13eb4398231650e2f719f7a7ba052.tar.bz2
Generate Q_PROPERTY entries out of KConfigSkeleton classes
It adds a configuration setting that makes it possible to generate Q_PROPERTY instances out of each variable exposed by the configuration class. Especially useful when it comes to exposing these classes to QtQuick interfaces. REVIEW: 123367 CHANGELOG: Generate QML-proof classes using the kconfigcompiler
Diffstat (limited to 'autotests/kconfig_compiler/test13main.cpp')
-rw-r--r--autotests/kconfig_compiler/test13main.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/autotests/kconfig_compiler/test13main.cpp b/autotests/kconfig_compiler/test13main.cpp
new file mode 100644
index 00000000..e732c17c
--- /dev/null
+++ b/autotests/kconfig_compiler/test13main.cpp
@@ -0,0 +1,28 @@
+/*
+Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+*/
+#include "test13.h"
+
+int main(int, char **)
+{
+ Test13 *t = new Test13();
+ delete t;
+ return 0;
+}