Changeset View
Changeset View
Standalone View
Standalone View
autotests/kconfig_compiler/test4.cpp.ref
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Line(s) | 38 | QColor defaultColor[4] = { Qt::red, Qt::blue, Qt::green, Qt::black }; | |||
---|---|---|---|---|---|
63 | } | 63 | } | ||
64 | { | 64 | { | ||
65 | KConfigSkeleton::ItemEnum::Choice choice; | 65 | KConfigSkeleton::ItemEnum::Choice choice; | ||
66 | choice.name = QStringLiteral("PumpNDump"); | 66 | choice.name = QStringLiteral("PumpNDump"); | ||
67 | valuesMouseAction.append( choice ); | 67 | valuesMouseAction.append( choice ); | ||
68 | } | 68 | } | ||
69 | KConfigSkeleton::ItemEnum *itemMouseAction[3]; | 69 | KConfigSkeleton::ItemEnum *itemMouseAction[3]; | ||
70 | itemMouseAction[0] = new KConfigSkeleton::ItemEnum( currentGroup(), QStringLiteral( "right_mouse_action" ), mMouseAction[0], valuesMouseAction, EnumMouseAction::Decrypt ); | 70 | itemMouseAction[0] = new KConfigSkeleton::ItemEnum( currentGroup(), QStringLiteral( "right_mouse_action" ), mMouseAction[0], valuesMouseAction, EnumMouseAction::Decrypt ); | ||
71 | itemMouseAction[0]->addValue(QStringLiteral( "CrashNBurn" ), QStringLiteral( "Crash and Burn" )); | ||||
71 | addItem( itemMouseAction[0], QStringLiteral( "MouseActionright" ) ); | 72 | addItem( itemMouseAction[0], QStringLiteral( "MouseActionright" ) ); | ||
72 | itemMouseAction[1] = new KConfigSkeleton::ItemEnum( currentGroup(), QStringLiteral( "mid_mouse_action" ), mMouseAction[1], valuesMouseAction, EnumMouseAction::Encrypt ); | 73 | itemMouseAction[1] = new KConfigSkeleton::ItemEnum( currentGroup(), QStringLiteral( "mid_mouse_action" ), mMouseAction[1], valuesMouseAction, EnumMouseAction::Encrypt ); | ||
74 | itemMouseAction[1]->addValue(QStringLiteral( "CrashNBurn" ), QStringLiteral( "Crash and Burn" )); | ||||
73 | addItem( itemMouseAction[1], QStringLiteral( "MouseActionmid" ) ); | 75 | addItem( itemMouseAction[1], QStringLiteral( "MouseActionmid" ) ); | ||
74 | itemMouseAction[2] = new KConfigSkeleton::ItemEnum( currentGroup(), QStringLiteral( "left_mouse_action" ), mMouseAction[2], valuesMouseAction, EnumMouseAction::PumpNDump ); | 76 | itemMouseAction[2] = new KConfigSkeleton::ItemEnum( currentGroup(), QStringLiteral( "left_mouse_action" ), mMouseAction[2], valuesMouseAction, EnumMouseAction::PumpNDump ); | ||
77 | itemMouseAction[2]->addValue(QStringLiteral( "CrashNBurn" ), QStringLiteral( "Crash and Burn" )); | ||||
75 | addItem( itemMouseAction[2], QStringLiteral( "MouseActionleft" ) ); | 78 | addItem( itemMouseAction[2], QStringLiteral( "MouseActionleft" ) ); | ||
76 | KConfigSkeleton::ItemColor *itemGrayColor[11]; | 79 | KConfigSkeleton::ItemColor *itemGrayColor[11]; | ||
77 | itemGrayColor[0] = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "gray color #0" ), mGrayColor[0], | 80 | itemGrayColor[0] = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "gray color #0" ), mGrayColor[0], | ||
78 | QColor::fromRgbF(0 / 10.0, 0 / 10.0, 0 / 10.0) | 81 | QColor::fromRgbF(0 / 10.0, 0 / 10.0, 0 / 10.0) | ||
79 | ); | 82 | ); | ||
80 | addItem( itemGrayColor[0], QStringLiteral( "GrayColor0" ) ); | 83 | addItem( itemGrayColor[0], QStringLiteral( "GrayColor0" ) ); | ||
81 | itemGrayColor[1] = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "gray color #1" ), mGrayColor[1], | 84 | itemGrayColor[1] = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "gray color #1" ), mGrayColor[1], | ||
82 | QColor::fromRgbF(1 / 10.0, 1 / 10.0, 1 / 10.0) | 85 | QColor::fromRgbF(1 / 10.0, 1 / 10.0, 1 / 10.0) | ||
▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines |