Skip to content
Permalink
Browse files

Fix #7973 Move print as raster and resolution spin box to "paper and …

…quality" group box, don't disable resolution spin box when print as raster is unchecked.
  • Loading branch information
nyalldawson committed Jun 6, 2013
1 parent 46fedf9 commit 9a7776a239b58d58a4c65ab750f7a41b301b6f18
@@ -47,7 +47,7 @@ QgsCompositionWidget::QgsCompositionWidget( QWidget* parent, QgsComposition* c )
mResolutionSpinBox->setValue( mComposition->printResolution() );

//print as raster
mPrintAsRasterGroupCheckBox->setChecked( mComposition->printAsRaster() );
mPrintAsRasterCheckBox->setChecked( mComposition->printAsRaster() );

mAlignmentSnapGroupCheckBox->setChecked( mComposition->alignmentSnap() );
mAlignmentToleranceSpinBox->setValue( mComposition->alignmentSnapTolerance() );
@@ -379,9 +379,9 @@ void QgsCompositionWidget::displayCompositionWidthHeight()

void QgsCompositionWidget::setPrintAsRasterCheckBox( bool state )
{
mPrintAsRasterGroupCheckBox->blockSignals( true );
mPrintAsRasterGroupCheckBox->setChecked( state );
mPrintAsRasterGroupCheckBox->blockSignals( false );
mPrintAsRasterCheckBox->blockSignals( true );
mPrintAsRasterCheckBox->setChecked( state );
mPrintAsRasterCheckBox->blockSignals( false );
}

void QgsCompositionWidget::displaySnapingSettings()
@@ -402,7 +402,7 @@ void QgsCompositionWidget::on_mResolutionSpinBox_valueChanged( const int value )
mComposition->setPrintResolution( value );
}

void QgsCompositionWidget::on_mPrintAsRasterGroupCheckBox_toggled( bool state )
void QgsCompositionWidget::on_mPrintAsRasterCheckBox_toggled( bool state )
{
if ( !mComposition )
{
@@ -518,7 +518,7 @@ void QgsCompositionWidget::blockSignals( bool block )
mNumPagesSpinBox->blockSignals( block );
mPaperOrientationComboBox->blockSignals( block );
mResolutionSpinBox->blockSignals( block );
mPrintAsRasterGroupCheckBox->blockSignals( block );
mPrintAsRasterCheckBox->blockSignals( block );
mSnapToGridGroupCheckBox->blockSignals( block );
mGridResolutionSpinBox->blockSignals( block );
mOffsetXSpinBox->blockSignals( block );
@@ -47,7 +47,7 @@ class QgsCompositionWidget: public QWidget, private Ui::QgsCompositionWidgetBase
void on_mPaperHeightDoubleSpinBox_editingFinished();
void on_mNumPagesSpinBox_valueChanged( int value );
void on_mResolutionSpinBox_valueChanged( const int value );
void on_mPrintAsRasterGroupCheckBox_toggled( bool state );
void on_mPrintAsRasterCheckBox_toggled( bool state );

void on_mSnapToGridGroupCheckBox_toggled( bool state );
void on_mGridResolutionSpinBox_valueChanged( double d );
@@ -223,41 +223,7 @@
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QgsCollapsibleGroupBoxBasic" name="mPrintAsRasterGroupCheckBox">
<property name="title">
<string>Print as raster</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
<property name="syncGroup" stdset="0">
<string notr="true">composeritem</string>
</property>
<property name="collapsed" stdset="0">
<bool>false</bool>
</property>
<layout class="QFormLayout" name="formLayout_4">
<property name="fieldGrowthPolicy">
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
</property>
<property name="labelAlignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<item row="0" column="0">
<widget class="QLabel" name="label_9">
<property name="text">
<string>Resolution</string>
</property>
</widget>
</item>
<item row="0" column="1">
<item row="6" column="1">
<widget class="QSpinBox" name="mResolutionSpinBox">
<property name="suffix">
<string> dpi</string>
@@ -270,6 +236,26 @@
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QLabel" name="label_9">
<property name="text">
<string>Export resolution</string>
</property>
</widget>
</item>
<item row="7" column="0" colspan="2">
<widget class="QCheckBox" name="mPrintAsRasterCheckBox">
<property name="text">
<string>Print as raster</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>

0 comments on commit 9a7776a

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