Navigation Menu

Skip to content

Commit

Permalink
Remove warnings about Qt4 + OpenGL + MacOS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ianrrees committed Mar 23, 2017
1 parent 44a9ecd commit a3c4c60
Showing 1 changed file with 0 additions and 46 deletions.
46 changes: 0 additions & 46 deletions src/Gui/MainWindow.cpp
Expand Up @@ -469,57 +469,11 @@ void MainWindow::arrangeIcons()
void MainWindow::tile()
{
d->mdiArea->tileSubWindows();

// Warn about limitation in Qt4.8 involving multiple OpenGL widgets with Cocoa.
#if defined(__APPLE__)
ParameterGrp::handle hGrp = App::GetApplication().GetUserParameter().
GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("MainWindow");

if(hGrp->GetBool("ShowAppleMdiWarning", true)) {
QMessageBox mb(this);
mb.setIcon(QMessageBox::Warning);
mb.setTextFormat(Qt::RichText);
mb.setText(tr("There is a rendering issue on MacOS."));
mb.setInformativeText(tr("See <a href=\"http://www.freecadweb.org/wiki/OpenGL_on_MacOS\"> the wiki</a> for more information"));

QAbstractButton *suppressBtn;
suppressBtn = mb.addButton(tr("Don't show again"), QMessageBox::DestructiveRole);
mb.addButton(QMessageBox::Ok);

mb.exec();
if(mb.clickedButton() == suppressBtn) {
hGrp->SetBool("ShowAppleMdiWarning", false);
}
}
#endif // defined(__APPLE__)
}

void MainWindow::cascade()
{
d->mdiArea->cascadeSubWindows();

// See above in MainWindow::tile()
#if defined(__APPLE__)
ParameterGrp::handle hGrp = App::GetApplication().GetUserParameter().
GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("MainWindow");

if(hGrp->GetBool("ShowAppleMdiWarning", true)) {
QMessageBox mb(this);
mb.setIcon(QMessageBox::Warning);
mb.setTextFormat(Qt::RichText);
mb.setText(tr("There is a rendering issue on MacOS."));
mb.setInformativeText(tr("See <a href=\"http://www.freecadweb.org/wiki/OpenGL_on_MacOS\"> the wiki</a> for more information"));

QAbstractButton *suppressBtn;
suppressBtn = mb.addButton(tr("Don't show again"), QMessageBox::DestructiveRole);
mb.addButton(QMessageBox::Ok);

mb.exec();
if(mb.clickedButton() == suppressBtn) {
hGrp->SetBool("ShowAppleMdiWarning", false);
}
}
#endif // defined(__APPLE__)
}

void MainWindow::closeActiveWindow ()
Expand Down

0 comments on commit a3c4c60

Please sign in to comment.