Skip to content

Commit

Permalink
Allow Mesh 3D view properties dialog resize
Browse files Browse the repository at this point in the history
  • Loading branch information
DelazJ authored and nyalldawson committed Jul 18, 2021
1 parent b6c820e commit 877dc93
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/app/3d/qgsmeshlayer3drendererwidget.cpp
Expand Up @@ -18,7 +18,7 @@
#include "qgsmesh3dsymbol.h"
#include "qgsmesh3dsymbolwidget.h"
#include "qgsmeshlayer3drenderer.h"

#include "qgsvscrollarea.h"
#include "qgsmeshlayer.h"

#include <QBoxLayout>
Expand All @@ -29,8 +29,20 @@ QgsMeshLayer3DRendererWidget::QgsMeshLayer3DRendererWidget( QgsMeshLayer *layer,
{
setPanelTitle( tr( "3D View" ) );

QVBoxLayout *layout = new QVBoxLayout( this );
QgsVScrollArea *scrollArea = new QgsVScrollArea( this );
scrollArea->setFrameShape( QFrame::NoFrame );
scrollArea->setFrameShadow( QFrame::Plain );
scrollArea->setWidgetResizable( true );
QVBoxLayout *scrollLayout = new QVBoxLayout( this );
scrollLayout->setContentsMargins( 0, 0, 0, 0 );
scrollLayout->addWidget( scrollArea );

QVBoxLayout *layout = new QVBoxLayout;
layout->setContentsMargins( 0, 0, 0, 0 );
QWidget *widget = new QWidget;
widget->setLayout( layout );
scrollArea->setWidget( widget );

mChkEnabled = new QCheckBox( tr( "Enable 3D Renderer" ), this );
layout->addWidget( mChkEnabled );

Expand Down

0 comments on commit 877dc93

Please sign in to comment.