Fixed AA not being applied to the preview widget.

This commit is contained in:
Leonardo Zide 2020-10-11 17:22:18 -07:00
parent 3050b4a768
commit 8dad9dd269

View file

@ -145,11 +145,6 @@ void lcMainWindow::CreateWidgets()
setWindowIcon(QIcon(":/resources/leocad.png"));
setWindowFilePath(QString());
CreateActions();
CreateToolBars();
CreateMenus();
CreateStatusBar();
int AASamples = lcGetProfileInt(LC_PROFILE_ANTIALIASING_SAMPLES);
if (AASamples > 1)
{
@ -159,6 +154,11 @@ void lcMainWindow::CreateWidgets()
QGLFormat::setDefaultFormat(format);
}
CreateActions();
CreateToolBars();
CreateMenus();
CreateStatusBar();
mModelTabWidget = new lcTabWidget();
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
mModelTabWidget->tabBar()->setMovable(true);