aboutsummaryrefslogtreecommitdiff
path: root/autotests/kconfig_compiler/test_qdebugcategory.h.ref
diff options
context:
space:
mode:
Diffstat (limited to 'autotests/kconfig_compiler/test_qdebugcategory.h.ref')
-rw-r--r--autotests/kconfig_compiler/test_qdebugcategory.h.ref30
1 files changed, 27 insertions, 3 deletions
diff --git a/autotests/kconfig_compiler/test_qdebugcategory.h.ref b/autotests/kconfig_compiler/test_qdebugcategory.h.ref
index 14e1ebac..cf7e3dbf 100644
--- a/autotests/kconfig_compiler/test_qdebugcategory.h.ref
+++ b/autotests/kconfig_compiler/test_qdebugcategory.h.ref
@@ -21,7 +21,7 @@ class TestQCategory : public KConfigSkeleton
*/
void setColor( const QColor & v )
{
- if (!isImmutable( QStringLiteral( "Color" ) ))
+ if (!isColorImmutable())
mColor = v;
}
@@ -34,11 +34,19 @@ class TestQCategory : 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;
}
@@ -51,6 +59,14 @@ class TestQCategory : public KConfigSkeleton
}
/**
+ Is foo bar Immutable
+ */
+ bool isFooBarImmutable() const
+ {
+ return isImmutable( QStringLiteral( "FooBar" ) );
+ }
+
+ /**
Set Age
*/
void setAge( int v )
@@ -67,7 +83,7 @@ class TestQCategory : public KConfigSkeleton
v = 88;
}
- if (!isImmutable( QStringLiteral( "Age" ) ))
+ if (!isAgeImmutable())
mAge = v;
}
@@ -79,6 +95,14 @@ class TestQCategory : public KConfigSkeleton
return mAge;
}
+ /**
+ Is Age Immutable
+ */
+ bool isAgeImmutable() const
+ {
+ return isImmutable( QStringLiteral( "Age" ) );
+ }
+
protected:
int mParamNumber;