mirror of
https://github.com/leozide/leocad
synced 2025-01-17 18:11:42 +01:00
Fixed AA setting not being applied to the first view.
This commit is contained in:
parent
49a88e1ab4
commit
6491d15bb3
2 changed files with 9 additions and 9 deletions
|
@ -104,6 +104,15 @@ void lcMainWindow::CreateWidgets()
|
|||
CreateMenus();
|
||||
CreateStatusBar();
|
||||
|
||||
int AASamples = lcGetProfileInt(LC_PROFILE_ANTIALIASING_SAMPLES);
|
||||
if (AASamples > 1)
|
||||
{
|
||||
QGLFormat format;
|
||||
format.setSampleBuffers(true);
|
||||
format.setSamples(AASamples);
|
||||
QGLFormat::setDefaultFormat(format);
|
||||
}
|
||||
|
||||
mModelTabWidget = new QTabWidget();
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
|
||||
mModelTabWidget->tabBar()->setMovable(true);
|
||||
|
|
|
@ -99,15 +99,6 @@ lcQGLWidget::lcQGLWidget(QWidget *parent, lcGLWidget *owner, bool view)
|
|||
|
||||
gPlaceholderMesh = new lcMesh;
|
||||
gPlaceholderMesh->CreateBox();
|
||||
|
||||
int AASamples = lcGetProfileInt(LC_PROFILE_ANTIALIASING_SAMPLES);
|
||||
if (AASamples > 1)
|
||||
{
|
||||
QGLFormat format;
|
||||
format.setSampleBuffers(true);
|
||||
format.setSamples(AASamples);
|
||||
QGLFormat::setDefaultFormat(format);
|
||||
}
|
||||
}
|
||||
gWidgetList.append(this);
|
||||
|
||||
|
|
Loading…
Reference in a new issue