Skip to content
Permalink
Browse files

Use QgsDoubleSpinBox for 3d texture widgets

  • Loading branch information
nyalldawson committed Jul 10, 2020
1 parent 087cee5 commit 98327ef4ebd7c083e028f870ae1597910a99080f
Showing with 12 additions and 4 deletions.
  1. +3 −1 src/app/3d/qgsphongmaterialwidget.cpp
  2. +9 −3 src/ui/3d/phongmaterialwidget.ui
@@ -26,7 +26,9 @@ QgsPhongMaterialWidget::QgsPhongMaterialWidget( QWidget *parent )
setMaterial( QgsPhongMaterialSettings() );

textureFile->setFilter( "Images (*.png *.xpm *.jpg *.jpeg *.bmp)" );
// btnDiffuse->setV

textureScaleSpinBox->setClearValue( 0 );
textureRotationSpinBox->setClearValue( 0 );

connect( btnDiffuse, &QgsColorButton::colorChanged, this, &QgsPhongMaterialWidget::changed );
connect( btnAmbient, &QgsColorButton::colorChanged, this, &QgsPhongMaterialWidget::changed );
@@ -118,7 +118,7 @@
</widget>
</item>
<item row="5" column="1">
<widget class="QDoubleSpinBox" name="textureScaleSpinBox">
<widget class="QgsDoubleSpinBox" name="textureScaleSpinBox">
<property name="minimum">
<double>0.010000000000000</double>
</property>
@@ -141,12 +141,18 @@
</widget>
</item>
<item row="6" column="1">
<widget class="QDoubleSpinBox" name="textureRotationSpinBox">
<widget class="QgsDoubleSpinBox" name="textureRotationSpinBox">
<property name="suffix">
<string> °</string>
</property>
<property name="minimum">
<double>-360.000000000000000</double>
</property>
<property name="maximum">
<double>360.000000000000000</double>
</property>
<property name="singleStep">
<double>5.000000000000000</double>
<double>0.500000000000000</double>
</property>
</widget>
</item>

0 comments on commit 98327ef

Please sign in to comment.
You can’t perform that action at this time.