Skip to content

Commit

Permalink
Use QgsDoubleSpinBox for point size control, add default value
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 18, 2020
1 parent af162a8 commit 7642b3e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/app/3d/qgspointcloud3dsymbolwidget.cpp
Expand Up @@ -22,7 +22,10 @@
QgsPointCloud3DSymbolWidget::QgsPointCloud3DSymbolWidget( QgsPointCloud3DSymbol *symbol, QWidget *parent )
: QWidget( parent )
{
this->setupUi( this );
setupUi( this );

mPointSizeSpinBox->setClearValue( 2.0 );

if ( symbol )
setSymbol( symbol );

Expand Down
9 changes: 8 additions & 1 deletion src/ui/3d/qgspointcloud3dsymbolwidget.ui
Expand Up @@ -12,7 +12,7 @@
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="1">
<widget class="QDoubleSpinBox" name="mPointSizeSpinBox">
<widget class="QgsDoubleSpinBox" name="mPointSizeSpinBox">
<property name="maximum">
<double>10.000000000000000</double>
</property>
Expand Down Expand Up @@ -43,6 +43,13 @@
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>QgsDoubleSpinBox</class>
<extends>QDoubleSpinBox</extends>
<header>qgsdoublespinbox.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>

0 comments on commit 7642b3e

Please sign in to comment.