[Gui] move a NaviCube parameter to the NaviCube parameter group

- at the moment some NaviCube parameters are in the general View group, some in the dedicated NaviCube group
This commit is contained in:
Uwe
2022-06-17 01:52:01 +02:00
parent 673181a747
commit ef81bdfd42
5 changed files with 25 additions and 13 deletions

View File

@@ -77,10 +77,6 @@ void DlgSettingsNavigation::saveSettings()
int index = ui->comboOrbitStyle->currentIndex();
hGrp->SetInt("OrbitStyle", index);
index = ui->naviCubeCorner->currentIndex();
hGrp->SetInt("CornerNaviCube", index);
index = ui->comboRotationMode->currentIndex();
hGrp->SetInt("RotationMode", index);
@@ -91,6 +87,7 @@ void DlgSettingsNavigation::saveSettings()
ui->checkBoxUseAutoRotation->onSave();
ui->qspinNewDocScale->onSave();
ui->prefStepByTurn->onSave();
ui->naviCubeCorner->onSave();
ui->naviCubeToNearest->onSave();
ui->prefCubeSize->onSave();
@@ -117,6 +114,7 @@ void DlgSettingsNavigation::loadSettings()
ui->checkBoxUseAutoRotation->onRestore();
ui->qspinNewDocScale->onRestore();
ui->prefStepByTurn->onRestore();
ui->naviCubeCorner->onRestore();
ui->naviCubeToNearest->onRestore();
ui->prefCubeSize->onRestore();
@@ -130,9 +128,6 @@ void DlgSettingsNavigation::loadSettings()
index = Base::clamp(index, 0, ui->comboOrbitStyle->count()-1);
ui->comboOrbitStyle->setCurrentIndex(index);
index = hGrp->GetInt("CornerNaviCube", 1);
ui->naviCubeCorner->setCurrentIndex(index);
index = hGrp->GetInt("RotationMode", 1);
ui->comboRotationMode->setCurrentIndex(index);