Skip to content
Permalink
Browse files

Initially set width and height spinboxes in composition paper setup t…

…o disabled (since initial format is A4)
  • Loading branch information
manisandro authored and nyalldawson committed Apr 13, 2014
1 parent 235795b commit ca2e68c407dcf8690dbb15819a4afa8ab8f11128
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/app/composer/qgscompositionwidget.cpp
@@ -139,7 +139,6 @@ void QgsCompositionWidget::createPaperEntries()
mPaperSizeComboBox->addItem( it->mName );
mPaperMap.insert( it->mName, *it );
}
mPaperSizeComboBox->setCurrentIndex( 2 ); //A4
}

void QgsCompositionWidget::on_mPaperSizeComboBox_currentIndexChanged( const QString& text )
@@ -380,6 +379,12 @@ void QgsCompositionWidget::displayCompositionWidthHeight()
//custom
mPaperSizeComboBox->setCurrentIndex( 0 );
}
else
{
mPaperWidthDoubleSpinBox->setEnabled( false );
mPaperHeightDoubleSpinBox->setEnabled( false );
mPaperUnitsComboBox->setEnabled( false );
}
}

void QgsCompositionWidget::on_mPageStyleButton_clicked()
@@ -567,3 +572,4 @@ void QgsCompositionWidget::blockSignals( bool block )
mGridToleranceSpinBox->blockSignals( block );
mAlignmentToleranceSpinBox->blockSignals( block );
}

0 comments on commit ca2e68c

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