refactor: cleanup opengl

This commit is contained in:
parker
2025-06-26 09:09:35 +01:00
parent b702fd55f7
commit 89b04be318
7 changed files with 211 additions and 96 deletions

View File

@@ -9,7 +9,7 @@ Viewport::Viewport(QWidget *parent, Qt::WindowFlags f)
: QWidget(parent, f)
{
mainLayout_=new QVBoxLayout();
openGLWidget_ = new MyGLWidget(this);
openGLWidget_ = new ViewportGLWidget(this);
mainLayout_->addWidget(openGLWidget_);
openGLWidget_->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
this->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);