Commit 697da800 authored by Mike Kremer's avatar Mike Kremer

Graying out OpenGL stereo mode button if not available.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7578 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 8dfc98a1
......@@ -337,8 +337,14 @@ void CoreWidget::slotChangeView(QString _mode, QStringList _toolboxWidgets, QStr
void CoreWidget::stereoButtonContextMenu(const QPoint& _pos) {
// Set values:
stereoSettingsWidget_->stereoOpengl->setChecked(OpenFlipper::Options::stereoMode() == OpenFlipper::Options::OpenGL);
// Grey out OpenGL stereo mode option if not available
if(!OpenFlipper::Options::glStereo()) {
stereoSettingsWidget_->stereoOpengl->setDisabled(true);
} else {
stereoSettingsWidget_->stereoOpengl->setChecked(OpenFlipper::Options::stereoMode() == OpenFlipper::Options::OpenGL);
}
// Set values
stereoSettingsWidget_->stereoAnaglyph->setChecked(OpenFlipper::Options::stereoMode() == OpenFlipper::Options::AnaglyphRedCyan);
stereoSettingsWidget_->stereoCustomAnaglyph->setChecked(OpenFlipper::Options::stereoMode() == OpenFlipper::Options::AnaglyphCustom);
stereoSettingsWidget_->stereoPhilips->setChecked(OpenFlipper::Options::stereoMode() == OpenFlipper::Options::Philips);
......
......@@ -239,7 +239,14 @@ void OptionsWidget::showEvent ( QShowEvent * /*event*/ ) {
logFile->setText( OpenFlipper::Options::logFile() );
//stereo
stereoOpengl->setChecked (OpenFlipper::Options::stereoMode() == OpenFlipper::Options::OpenGL);
// Grey out OpenGL stereo mode option if not available
if(!OpenFlipper::Options::glStereo()) {
stereoOpengl->setDisabled(true);
} else {
stereoOpengl->setChecked(OpenFlipper::Options::stereoMode() == OpenFlipper::Options::OpenGL);
}
stereoAnaglyph->setChecked (OpenFlipper::Options::stereoMode() == OpenFlipper::Options::AnaglyphRedCyan);
stereoCustomAnaglyph->setChecked (OpenFlipper::Options::stereoMode() == OpenFlipper::Options::AnaglyphCustom);
stereoPhilips->setChecked (OpenFlipper::Options::stereoMode() == OpenFlipper::Options::Philips);
......
Markdown is supported
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