Skip to content

Commit ca2e68c

Browse files
manisandronyalldawson
authored andcommittedApr 13, 2014
Initially set width and height spinboxes in composition paper setup to disabled (since initial format is A4)
1 parent 235795b commit ca2e68c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
 

‎src/app/composer/qgscompositionwidget.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ void QgsCompositionWidget::createPaperEntries()
139139
mPaperSizeComboBox->addItem( it->mName );
140140
mPaperMap.insert( it->mName, *it );
141141
}
142-
mPaperSizeComboBox->setCurrentIndex( 2 ); //A4
143142
}
144143

145144
void QgsCompositionWidget::on_mPaperSizeComboBox_currentIndexChanged( const QString& text )
@@ -380,6 +379,12 @@ void QgsCompositionWidget::displayCompositionWidthHeight()
380379
//custom
381380
mPaperSizeComboBox->setCurrentIndex( 0 );
382381
}
382+
else
383+
{
384+
mPaperWidthDoubleSpinBox->setEnabled( false );
385+
mPaperHeightDoubleSpinBox->setEnabled( false );
386+
mPaperUnitsComboBox->setEnabled( false );
387+
}
383388
}
384389

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

0 commit comments

Comments
 (0)
Please sign in to comment.