Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix double validator in composer map widget (part of ticket #2252)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12667 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jan 2, 2010
1 parent 08192ba commit cc028be
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/app/composer/qgscomposermapwidget.cpp
Expand Up @@ -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" ) );
Expand Down

0 comments on commit cc028be

Please sign in to comment.