aboutsummaryrefslogtreecommitdiff
path: root/autotests/kconfig_compiler/test_qdebugcategory.cpp.ref
blob: f2eea3333fd754e64034b05549758fc5e54e2004 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// This file is generated by kconfig_compiler_kf5 from test_qdebugcategory.kcfg.
// All changes you do to this file will be lost.

#include "test_qdebugcategory.h"

TestQCategory::TestQCategory(  int Number )
  : KConfigSkeleton( QLatin1String( "test7rc" ) )
  , mParamNumber(Number)
{
  setCurrentGroup( QLatin1String( "Foo" ) );

  KConfigSkeleton::ItemColor  *itemColor;
  itemColor = new KConfigSkeleton::ItemColor( currentGroup(), QString( QLatin1String( "color #%1" ) ).arg( mParamNumber ), mColor, QColor( "red" ) );
  addItem( itemColor, QLatin1String( "Color" ) );

  setCurrentGroup( QString( QLatin1String( "Bar%1" ) ).arg( mParamNumber ) );

  KConfigSkeleton::ItemString  *itemFooBar;
  itemFooBar = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "foo bar" ), mFooBar );
  addItem( itemFooBar, QLatin1String( "FooBar" ) );
  KConfigSkeleton::ItemInt  *itemAge;
  itemAge = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "Age" ), mAge, 35 );
  itemAge->setMinValue(8);
  itemAge->setMaxValue(88);
  addItem( itemAge, QLatin1String( "Age" ) );
}

TestQCategory::~TestQCategory()
{
}