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