mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-25 02:10:53 +00:00
Changed: Read/write shortcuts
This commit is contained in:
parent
245b32782f
commit
4c8d7884ea
2 changed files with 8 additions and 0 deletions
|
@ -112,6 +112,8 @@ bool CConfigFile::load(const QString &filename)
|
||||||
profile.executable = settings.value("executable").toString();
|
profile.executable = settings.value("executable").toString();
|
||||||
profile.arguments = settings.value("arguments").toString();
|
profile.arguments = settings.value("arguments").toString();
|
||||||
profile.comments = settings.value("comments").toString();
|
profile.comments = settings.value("comments").toString();
|
||||||
|
profile.desktopShortcut = settings.value("desktop_shortcut").toBool();
|
||||||
|
profile.menuShortcut = settings.value("menu_shortcut").toBool();
|
||||||
|
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
}
|
}
|
||||||
|
@ -180,6 +182,8 @@ bool CConfigFile::save() const
|
||||||
settings.setValue("executable", profile.executable);
|
settings.setValue("executable", profile.executable);
|
||||||
settings.setValue("arguments", profile.arguments);
|
settings.setValue("arguments", profile.arguments);
|
||||||
settings.setValue("comments", profile.comments);
|
settings.setValue("comments", profile.comments);
|
||||||
|
settings.setValue("desktop_shortcut", profile.desktopShortcut);
|
||||||
|
settings.setValue("menu_shortcut", profile.menuShortcut);
|
||||||
|
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,6 +47,8 @@ struct CProfile
|
||||||
CProfile()
|
CProfile()
|
||||||
{
|
{
|
||||||
id = -1;
|
id = -1;
|
||||||
|
desktopShortcut = false;
|
||||||
|
menuShortcut = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
int id;
|
int id;
|
||||||
|
@ -56,6 +58,8 @@ struct CProfile
|
||||||
QString executable;
|
QString executable;
|
||||||
QString arguments;
|
QString arguments;
|
||||||
QString comments;
|
QString comments;
|
||||||
|
bool desktopShortcut;
|
||||||
|
bool menuShortcut;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern const CProfile NoProfile;
|
extern const CProfile NoProfile;
|
||||||
|
|
Loading…
Reference in a new issue