aboutsummaryrefslogtreecommitdiff
path: root/autotests/kconfig_compiler/test_param_minmax.cpp.ref
diff options
context:
space:
mode:
authorHenri Chain <henri.chain@enioka.com>2020-02-18 23:21:30 +0100
committerHenri Chain <henri.chain@enioka.com>2020-02-25 15:46:53 +0100
commitd218b93a535085c85889164d45a83c3a519f9f4b (patch)
treeb9c051db2691321c6ef604cd138342b0f3e39fea /autotests/kconfig_compiler/test_param_minmax.cpp.ref
parentc8bf5e96cf2f25bb85330cf2587e2e365e6f0f71 (diff)
downloadkconfig-d218b93a535085c85889164d45a83c3a519f9f4b.tar.gz
kconfig-d218b93a535085c85889164d45a83c3a519f9f4b.tar.bz2
Fix code generation for entries with min/max
Summary: - When GenerateProperties and Mutators are activated, the generated code did not handle min/max properly - In the case of a parameterized entry, generated code also did not handle min/max BUG: 418146 Test Plan: - auto tests included Reviewers: meven, crossi, ervin, bport, tcanabrava Reviewed By: meven, ervin Subscribers: kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D27497
Diffstat (limited to 'autotests/kconfig_compiler/test_param_minmax.cpp.ref')
-rw-r--r--autotests/kconfig_compiler/test_param_minmax.cpp.ref41
1 files changed, 41 insertions, 0 deletions
diff --git a/autotests/kconfig_compiler/test_param_minmax.cpp.ref b/autotests/kconfig_compiler/test_param_minmax.cpp.ref
new file mode 100644
index 00000000..ceb224b2
--- /dev/null
+++ b/autotests/kconfig_compiler/test_param_minmax.cpp.ref
@@ -0,0 +1,41 @@
+// This file is generated by kconfig_compiler_kf5 from test_param_minmax.kcfg.
+// All changes you do to this file will be lost.
+
+#include "test_param_minmax.h"
+
+TestParamMinMax::TestParamMinMax( KSharedConfig::Ptr config )
+ : KConfigSkeleton( std::move( config ) )
+{
+ setCurrentGroup( QStringLiteral( "Something" ) );
+
+ KConfigSkeleton::ItemDouble *itemFoo[6];
+ itemFoo[0] = new KConfigSkeleton::ItemDouble( currentGroup(), QStringLiteral( "foo_#0" ), mFoo[0], 1.23 );
+ itemFoo[0]->setMinValue(0.01);
+ itemFoo[0]->setMaxValue(89898.23);
+ addItem( itemFoo[0], QStringLiteral( "Foo0" ) );
+ itemFoo[1] = new KConfigSkeleton::ItemDouble( currentGroup(), QStringLiteral( "foo_#1" ), mFoo[1], 1.23 );
+ itemFoo[1]->setMinValue(0.01);
+ itemFoo[1]->setMaxValue(89898.23);
+ addItem( itemFoo[1], QStringLiteral( "Foo1" ) );
+ itemFoo[2] = new KConfigSkeleton::ItemDouble( currentGroup(), QStringLiteral( "foo_#2" ), mFoo[2], 1.23 );
+ itemFoo[2]->setMinValue(0.01);
+ itemFoo[2]->setMaxValue(89898.23);
+ addItem( itemFoo[2], QStringLiteral( "Foo2" ) );
+ itemFoo[3] = new KConfigSkeleton::ItemDouble( currentGroup(), QStringLiteral( "foo_#3" ), mFoo[3], 1.23 );
+ itemFoo[3]->setMinValue(0.01);
+ itemFoo[3]->setMaxValue(89898.23);
+ addItem( itemFoo[3], QStringLiteral( "Foo3" ) );
+ itemFoo[4] = new KConfigSkeleton::ItemDouble( currentGroup(), QStringLiteral( "foo_#4" ), mFoo[4], 1.23 );
+ itemFoo[4]->setMinValue(0.01);
+ itemFoo[4]->setMaxValue(89898.23);
+ addItem( itemFoo[4], QStringLiteral( "Foo4" ) );
+ itemFoo[5] = new KConfigSkeleton::ItemDouble( currentGroup(), QStringLiteral( "foo_#5" ), mFoo[5], 1.23 );
+ itemFoo[5]->setMinValue(0.01);
+ itemFoo[5]->setMaxValue(89898.23);
+ addItem( itemFoo[5], QStringLiteral( "Foo5" ) );
+}
+
+TestParamMinMax::~TestParamMinMax()
+{
+}
+