Skip to content
Permalink
Browse files
remove Qt 4.5 dependency
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12247 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Nov 25, 2009
1 parent b4f09a2 commit 51f6a45
Showing 1 changed file with 8 additions and 0 deletions.
@@ -126,7 +126,11 @@ void QgsComposerShapeWidget::on_mOutlineColorButton_clicked()
return;
}
QColor existingColor = mComposerShape->outlineColor();
#if QT_VERSION >= 0x040500
QColor newColor = QColorDialog::getColor( existingColor, 0, tr( "Select outline color" ), QColorDialog::ShowAlphaChannel );
#else
QColor newColor = QColorDialog::getColor( existingColor );
#endif
if ( newColor.isValid() )
{
mComposerShape->setOutlineColor( newColor );
@@ -171,7 +175,11 @@ void QgsComposerShapeWidget::on_mFillColorButton_clicked()
return;
}
QColor existingColor = mComposerShape->fillColor();
#if QT_VERSION >= 0x040500
QColor newColor = QColorDialog::getColor( existingColor, 0, tr( "Select fill color" ), QColorDialog::ShowAlphaChannel );
#else
QColor newColor = QColorDialog::getColor( existingColor );
#endif
if ( newColor.isValid() )
{
mComposerShape->setFillColor( newColor );

0 comments on commit 51f6a45

Please sign in to comment.