5 QObject(parent), _currentMode(0), _name(other._name), _id(other._id), _keyMap(keyMap), _needsSave(true)
16 QObject(parent), _currentMode(0), _id(guid, modified.toUInt(0, 16)), _keyMap(keyMap), _needsSave(true)
23 QObject(parent), _currentMode(0), _id(guid, 0), _keyMap(keyMap), _needsSave(false)
26 SGroup group(settings, guid);
27 _name = settings.
value(
"Name").toString().trimmed();
35 QUuid
current = settings.
value(
"CurrentMode").toString().trimmed();
37 uint count = settings.
value(
"ModeCount").toUInt();
38 for(uint i = 0; i < count; i++){
39 SGroup group(settings, QString::number(i));
52 SGroup group(settings,
id().guidString());
60 settings.
setValue(
"ModeCount", count);
61 for(uint i = 0; i < count; i++){
62 SGroup group(settings, QString::number(i));
void setValue(const QString &key, const QVariant &value)
const ModeList & modes() const
QString modifiedString() const
KbProfile(Kb *parent, const KeyMap &keyMap, const KbProfile &other)
QVariant value(const QString &key, const QVariant &defaultValue=QVariant()) const
bool contains(const QString &key) const
QString guidString() const
void save(CkbSettings &settings)
void keyMap(const KeyMap &keyMap)
const KeyMap & keyMap() const
void save(CkbSettings &settings)
QString hwModifiedString() const