Skip to content

Commit

Permalink
Initially set width and height spinboxes in composition paper setup t…
Browse files Browse the repository at this point in the history
…o disabled (since initial format is A4)
  • Loading branch information
manisandro authored and nyalldawson committed Apr 13, 2014
1 parent 235795b commit ca2e68c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/app/composer/qgscompositionwidget.cpp
Expand Up @@ -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 )
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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.