Commit 620cc97f authored by Mathieu Tillet's avatar Mathieu Tillet
Browse files

Reset freeze rotation checkbox when changing view

After changing from full3D to another view mode and back, the checkbox
has to be reset. There has to be a better way to do that, but I didn't
manage to find it, so this at least works
parent 738687f0
......@@ -76,9 +76,7 @@ public slots:
void saveImage(const QString &filename = "");
private slots:
void showResetView(int /*iv*/);
void showFlipControl(int /*iv*/);
void showOrHideBoxes(int /*iv*/);
/// Called before the display setting menu opens. Filters out menu options.
void displaySettingsAboutToshow();
/// Change the type of the surfac
......
......@@ -557,17 +557,17 @@ void InstrumentWidgetRenderTab::setLegendScaleType(int index) {
}
/**
* Show ResetView combo box only with 3D view
* Show or hide boxes depending if the current render mode is Full3D view
* @param iv Index of a render mode in RenderMode combo box. iv == 0 is 3D view
*/
void InstrumentWidgetRenderTab::showResetView(int iv) {
m_resetViewFrame->setVisible(iv == 0);
}
void InstrumentWidgetRenderTab::showOrHideBoxes(int iv) {
bool isFull3D = iv == 0;
m_resetViewFrame->setVisible(isFull3D);
m_flipCheckBox->setVisible(!isFull3D);
m_peakOverlaysButton->setVisible(!isFull3D);
void InstrumentWidgetRenderTab::showFlipControl(int iv) {
bool vis = iv != 0;
m_flipCheckBox->setVisible(vis);
m_peakOverlaysButton->setVisible(vis);
if (isFull3D)
m_freezeRotation->setChecked(false);
}
/**
......@@ -782,8 +782,7 @@ void InstrumentWidgetRenderTab::surfaceTypeChanged(int index) {
// checking action calls setSurfaceType slot
action->setChecked(true);
}
showFlipControl(index);
showResetView(index);
showOrHideBoxes(index);
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment