git-svn-id: svn://db.shs.com.ru/libs@424 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -133,3 +133,25 @@ void SessionManager::load(bool onlyMainwindow) {
|
||||
*floats[i].second = sr.getValue(floats[i].first, *floats[i].second);
|
||||
emit loading(sr);
|
||||
}
|
||||
|
||||
|
||||
void SessionManager::clear() {
|
||||
mwindows.clear();
|
||||
widgets.clear();
|
||||
checks.clear();
|
||||
lines.clear();
|
||||
combos.clear();
|
||||
dspins.clear();
|
||||
spins.clear();
|
||||
spinsliders.clear();
|
||||
tabs.clear();
|
||||
buttons.clear();
|
||||
stacks.clear();
|
||||
actions.clear();
|
||||
stringlists.clear();
|
||||
strings.clear();
|
||||
colors.clear();
|
||||
bools.clear();
|
||||
ints.clear();
|
||||
floats.clear();
|
||||
}
|
||||
|
||||
@@ -59,6 +59,7 @@ public:
|
||||
|
||||
void save();
|
||||
void load(bool onlyMainwindow = false);
|
||||
void clear();
|
||||
|
||||
private:
|
||||
QVector<QPair<QString, QMainWindow * > > mwindows;
|
||||
|
||||
Reference in New Issue
Block a user