git-svn-id: svn://db.shs.com.ru/libs@176 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -87,16 +87,24 @@ void SessionManager::load(bool onlyMainwindow) {
|
||||
checks[i].second->setChecked(sr.getValue(checks[i].first, checks[i].second->isChecked()));
|
||||
for (int i = 0; i < lines.size(); ++i)
|
||||
lines[i].second->setText(sr.getValue(lines[i].first, lines[i].second->text()));
|
||||
for (int i = 0; i < combos.size(); ++i)
|
||||
combos[i].second->setCurrentIndex(sr.getValue(combos[i].first, combos[i].second->currentIndex()));
|
||||
for (int i = 0; i < combos.size(); ++i) {
|
||||
QComboBox * c = combos[i].second;
|
||||
int v = sr.getValue(combos[i].first, c->currentIndex());
|
||||
if (v >= 0 && v < c->count())
|
||||
c->setCurrentIndex(v);
|
||||
}
|
||||
for (int i = 0; i < dspins.size(); ++i)
|
||||
dspins[i].second->setValue(sr.getValue(dspins[i].first, dspins[i].second->value()));
|
||||
for (int i = 0; i < spins.size(); ++i)
|
||||
spins[i].second->setValue(sr.getValue(spins[i].first, spins[i].second->value()));
|
||||
for (int i = 0; i < spinsliders.size(); ++i)
|
||||
spinsliders[i].second->setValue(sr.getValue(spinsliders[i].first, spinsliders[i].second->value()));
|
||||
for (int i = 0; i < tabs.size(); ++i)
|
||||
tabs[i].second->setCurrentIndex(sr.getValue(tabs[i].first, tabs[i].second->currentIndex()));
|
||||
for (int i = 0; i < tabs.size(); ++i) {
|
||||
QTabWidget * t = tabs[i].second;
|
||||
int v = sr.getValue(tabs[i].first, t->currentIndex());
|
||||
if (v >= 0 && v < t->count())
|
||||
t->setCurrentIndex(v);
|
||||
}
|
||||
for (int i = 0; i < actions.size(); ++i)
|
||||
actions[i].second->setChecked(sr.getValue(actions[i].first, actions[i].second->isChecked()));
|
||||
for (int i = 0; i < stringlists.size(); ++i)
|
||||
|
||||
Reference in New Issue
Block a user