Skip to content
Permalink
Browse files

Fix double validator in composer map widget (part of ticket #2252)

git-svn-id: http://svn.osgeo.org/qgis/trunk@12667 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Jan 2, 2010
1 parent 4f94862 commit e51df5c5b7b64fbdc72f865a7ebe76524eef2f0e
Showing with 7 additions and 8 deletions.
  1. +7 −8 src/app/composer/qgscomposermapwidget.cpp
@@ -29,16 +29,15 @@ QgsComposerMapWidget::QgsComposerMapWidget( QgsComposerMap* composerMap ): QWidg
//add widget for general composer item properties
QgsComposerItemWidget* itemPropertiesWidget = new QgsComposerItemWidget( this, composerMap );
toolBox->addItem( itemPropertiesWidget, tr( "General options" ) );
QDoubleValidator v( 0 );

mWidthLineEdit->setValidator( &v );
mHeightLineEdit->setValidator( &v );
mScaleLineEdit->setValidator( &v );
mWidthLineEdit->setValidator( new QDoubleValidator( mWidthLineEdit ) );
mHeightLineEdit->setValidator( new QDoubleValidator( mHeightLineEdit ) );
mScaleLineEdit->setValidator( new QDoubleValidator( mScaleLineEdit ) );

mXMinLineEdit->setValidator( &v );
mXMaxLineEdit->setValidator( &v );
mYMinLineEdit->setValidator( &v );
mYMaxLineEdit->setValidator( &v );
mXMinLineEdit->setValidator( new QDoubleValidator( mXMinLineEdit ) );
mXMaxLineEdit->setValidator( new QDoubleValidator( mXMaxLineEdit ) );
mYMinLineEdit->setValidator( new QDoubleValidator( mYMinLineEdit ) );
mYMaxLineEdit->setValidator( new QDoubleValidator( mYMaxLineEdit ) );

blockAllSignals( true );
mPreviewModeComboBox->insertItem( 0, tr( "Cache" ) );

0 comments on commit e51df5c

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