Skip to content

Commit

Permalink
Fixes to the 3D map widget spin boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Aug 25, 2018
1 parent f0dcf7f commit eae59bb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/layout/qgslayout3dmapwidget.cpp
Expand Up @@ -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 );
Expand Down Expand Up @@ -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 );
}
Expand Down

0 comments on commit eae59bb

Please sign in to comment.