//----------------------------------------------------------------------------- void ctkSettings::saveState(const QMainWindow& window, const QString& key) { this->beginGroup(key); this->setValue("Position", window.pos()); this->setValue("Size", window.size()); this->setValue("Layout", window.saveState()); this->endGroup(); }