aboutsummaryrefslogtreecommitdiff
path: root/autotests/kconfig_compiler/test5.h.ref
diff options
context:
space:
mode:
Diffstat (limited to 'autotests/kconfig_compiler/test5.h.ref')
-rw-r--r--autotests/kconfig_compiler/test5.h.ref44
1 files changed, 40 insertions, 4 deletions
diff --git a/autotests/kconfig_compiler/test5.h.ref b/autotests/kconfig_compiler/test5.h.ref
index 07049cab..96e5c143 100644
--- a/autotests/kconfig_compiler/test5.h.ref
+++ b/autotests/kconfig_compiler/test5.h.ref
@@ -23,7 +23,7 @@ class Test5 : public KConfigSkeleton
static
void setColor( int i, const QColor & v )
{
- if (!self()->isImmutable( QStringLiteral( "Color%1" ).arg( i ) ))
+ if (!self()->isColorImmutable( i ))
self()->mColor[i] = v;
}
@@ -37,12 +37,21 @@ class Test5 : public KConfigSkeleton
}
/**
+ Is Block colors. Immutable
+ */
+ static
+ bool isColorImmutable( int i )
+ {
+ return self()->isImmutable( QStringLiteral( "Color%1" ).arg( i ) );
+ }
+
+ /**
Set Mouse actions.
*/
static
void setMouseAction( int i, int v )
{
- if (!self()->isImmutable( QStringLiteral( "MouseAction%1" ).arg( QLatin1String( EnumButtonToString[i] ) ) ))
+ if (!self()->isMouseActionImmutable( i ))
self()->mMouseAction[i] = v;
}
@@ -56,12 +65,21 @@ class Test5 : public KConfigSkeleton
}
/**
+ Is Mouse actions. Immutable
+ */
+ static
+ bool isMouseActionImmutable( int i )
+ {
+ return self()->isImmutable( QStringLiteral( "MouseAction%1" ).arg( QLatin1String( EnumButtonToString[i] ) ) );
+ }
+
+ /**
Set foo bar
*/
static
void setFooBar( const QString & v )
{
- if (!self()->isImmutable( QStringLiteral( "FooBar" ) ))
+ if (!self()->isFooBarImmutable())
self()->mFooBar = v;
}
@@ -75,6 +93,15 @@ class Test5 : public KConfigSkeleton
}
/**
+ Is foo bar Immutable
+ */
+ static
+ bool isFooBarImmutable()
+ {
+ return self()->isImmutable( QStringLiteral( "FooBar" ) );
+ }
+
+ /**
Set Age
*/
static
@@ -92,7 +119,7 @@ class Test5 : public KConfigSkeleton
v = 88;
}
- if (!self()->isImmutable( QStringLiteral( "Age" ) ))
+ if (!self()->isAgeImmutable())
self()->mAge = v;
}
@@ -105,6 +132,15 @@ class Test5 : public KConfigSkeleton
return self()->mAge;
}
+ /**
+ Is Age Immutable
+ */
+ static
+ bool isAgeImmutable()
+ {
+ return self()->isImmutable( QStringLiteral( "Age" ) );
+ }
+
protected:
Test5(QObject *parent = nullptr);
friend class Test5Helper;