Skip to content
Permalink
Browse files
Allow Mesh 3D view properties dialog resize
  • Loading branch information
DelazJ authored and nyalldawson committed Jul 18, 2021
1 parent b6c820e commit 877dc9309ba6e3c045cefc5bcfd390f6d3f94a7e
Showing with 14 additions and 2 deletions.
  1. +14 −2 src/app/3d/qgsmeshlayer3drendererwidget.cpp
@@ -18,7 +18,7 @@
#include "qgsmesh3dsymbol.h"
#include "qgsmesh3dsymbolwidget.h"
#include "qgsmeshlayer3drenderer.h"

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

#include <QBoxLayout>
@@ -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 );

0 comments on commit 877dc93

Please sign in to comment.