Skip to content

Commit 9fceb43

Browse files
author
jef
committedNov 25, 2009
remove Qt 4.5 dependency
git-svn-id: http://svn.osgeo.org/qgis/trunk@12247 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent e351381 commit 9fceb43

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎src/app/composer/qgscomposershapewidget.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,11 @@ void QgsComposerShapeWidget::on_mOutlineColorButton_clicked()
126126
return;
127127
}
128128
QColor existingColor = mComposerShape->outlineColor();
129+
#if QT_VERSION >= 0x040500
129130
QColor newColor = QColorDialog::getColor( existingColor, 0, tr( "Select outline color" ), QColorDialog::ShowAlphaChannel );
131+
#else
132+
QColor newColor = QColorDialog::getColor( existingColor );
133+
#endif
130134
if ( newColor.isValid() )
131135
{
132136
mComposerShape->setOutlineColor( newColor );
@@ -171,7 +175,11 @@ void QgsComposerShapeWidget::on_mFillColorButton_clicked()
171175
return;
172176
}
173177
QColor existingColor = mComposerShape->fillColor();
178+
#if QT_VERSION >= 0x040500
174179
QColor newColor = QColorDialog::getColor( existingColor, 0, tr( "Select fill color" ), QColorDialog::ShowAlphaChannel );
180+
#else
181+
QColor newColor = QColorDialog::getColor( existingColor );
182+
#endif
175183
if ( newColor.isValid() )
176184
{
177185
mComposerShape->setFillColor( newColor );

0 commit comments

Comments
 (0)
Please sign in to comment.