aboutsummaryrefslogtreecommitdiff
path: root/autotests/kconfig_compiler/test6.h.ref
diff options
context:
space:
mode:
Diffstat (limited to 'autotests/kconfig_compiler/test6.h.ref')
-rw-r--r--autotests/kconfig_compiler/test6.h.ref30
1 files changed, 27 insertions, 3 deletions
diff --git a/autotests/kconfig_compiler/test6.h.ref b/autotests/kconfig_compiler/test6.h.ref
index ddc435a1..6084e7dc 100644
--- a/autotests/kconfig_compiler/test6.h.ref
+++ b/autotests/kconfig_compiler/test6.h.ref
@@ -19,7 +19,7 @@ class Test6 : public KConfigSkeleton
*/
void setColor( const QColor & v )
{
- if (!isImmutable( QStringLiteral( "Color" ) ))
+ if (!isColorImmutable())
mColor = v;
}
@@ -32,11 +32,19 @@ class Test6 : public KConfigSkeleton
}
/**
+ Is Block colors. Immutable
+ */
+ bool isColorImmutable() const
+ {
+ return isImmutable( QStringLiteral( "Color" ) );
+ }
+
+ /**
Set foo bar
*/
void setFooBar( const QString & v )
{
- if (!isImmutable( QStringLiteral( "FooBar" ) ))
+ if (!isFooBarImmutable())
mFooBar = v;
}
@@ -49,6 +57,14 @@ class Test6 : public KConfigSkeleton
}
/**
+ Is foo bar Immutable
+ */
+ bool isFooBarImmutable() const
+ {
+ return isImmutable( QStringLiteral( "FooBar" ) );
+ }
+
+ /**
Set Age
*/
void setAge( int v )
@@ -65,7 +81,7 @@ class Test6 : public KConfigSkeleton
v = 88;
}
- if (!isImmutable( QStringLiteral( "Age" ) ))
+ if (!isAgeImmutable())
mAge = v;
}
@@ -77,6 +93,14 @@ class Test6 : public KConfigSkeleton
return mAge;
}
+ /**
+ Is Age Immutable
+ */
+ bool isAgeImmutable() const
+ {
+ return isImmutable( QStringLiteral( "Age" ) );
+ }
+
protected:
QString mParamNumber;