Skip to content
Permalink
Browse files

Fixes to the 3D map widget spin boxes

  • Loading branch information
wonder-sk committed Aug 25, 2018
1 parent f0dcf7f commit eae59bb275ac14767ed477d2161d7121168aa817
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/app/layout/qgslayout3dmapwidget.cpp
@@ -27,6 +27,11 @@ QgsLayout3DMapWidget::QgsLayout3DMapWidget( QgsLayoutItem3DMap *map3D )
{
setupUi( this );

mCenterXSpinBox->setClearValue( 0 );
mCenterYSpinBox->setClearValue( 0 );
mCenterZSpinBox->setClearValue( 0 );
mDistanceToCenterSpinBox->setClearValue( 1000 );

//add widget for general composer item properties
mItemPropertiesWidget = new QgsLayoutItemPropertiesWidget( this, map3D );
mainLayout->addWidget( mItemPropertiesWidget );
@@ -58,7 +63,7 @@ QgsLayout3DMapWidget::QgsLayout3DMapWidget( QgsLayoutItem3DMap *map3D )
mHeadingAngleSpinBox->setValue( pose.headingAngle() );

QList<QgsDoubleSpinBox *> lst;
lst << mCenterXSpinBox << mCenterXSpinBox << mCenterXSpinBox << mDistanceToCenterSpinBox << mPitchAngleSpinBox << mHeadingAngleSpinBox;
lst << mCenterXSpinBox << mCenterYSpinBox << mCenterZSpinBox << mDistanceToCenterSpinBox << mPitchAngleSpinBox << mHeadingAngleSpinBox;
for ( QgsDoubleSpinBox *spinBox : lst )
connect( spinBox, qgis::overload<double>::of( &QgsDoubleSpinBox::valueChanged ), this, &QgsLayout3DMapWidget::updateCameraPose );
}

0 comments on commit eae59bb

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