ItemEnum Class Reference
from PyKDE4.kdecore import *
Inherits: KCoreConfigSkeleton.ItemInt
Namespace: KCoreConfigSkeleton
Detailed Description
Class for handling enums.
Methods |
| __init__ (self, QString _group, QString _key, int reference, [KCoreConfigSkeleton::ItemEnum::Choice] choices, int defaultValue=0) |
[KCoreConfigSkeleton::ItemEnum::Choice] | choices (self) |
| readConfig (self, KConfig config) |
| readDefault (self, KConfig config) |
| setDefault (self) |
| setDefaultValue (self, int v) |
| setValue (self, int v) |
| swapDefault (self) |
int | value (self) |
| writeConfig (self, KConfig config) |
Method Documentation
__init__ |
( |
self, |
|
|
|
QString |
_group, |
|
|
QString |
_key, |
|
|
int |
reference, |
|
|
[KCoreConfigSkeleton::ItemEnum::Choice] |
choices, |
|
|
int |
defaultValue=0 |
|
) |
|
|
|
[KCoreConfigSkeleton::ItemEnum::Choice] choices |
( |
|
self ) |
|
readConfig |
( |
self, |
|
|
|
KConfig |
config |
|
) |
|
|
|
KConfigSkeletonItem.readConfig(KConfig*)
readDefault |
( |
self, |
|
|
|
KConfig |
config |
|
) |
|
|
|
setDefaultValue |
( |
self, |
|
|
|
int |
v |
|
) |
|
|
|
writeConfig |
( |
self, |
|
|
|
KConfig |
config |
|
) |
|
|
|
KConfigSkeletonItem.writeConfig(KConfig*)