Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove more Qt 4.5 dependencies
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13209 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Mar 31, 2010
1 parent a9eb65d commit 26c41b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/qgsannotationwidget.cpp
Expand Up @@ -107,7 +107,11 @@ void QgsAnnotationWidget::on_mFrameColorButton_clicked()
return;
}

#if QT_VERSION >= 0x040500
QColor c = QColorDialog::getColor( mFrameColorButton->color(), 0, tr( "Select frame color" ), QColorDialog::ShowAlphaChannel );
#else
QColor c = QColorDialog::getColor( mFrameColorButton->color() );
#endif
if ( c.isValid() )
{
mFrameColorButton->setColor( c );
Expand Down
4 changes: 4 additions & 0 deletions src/app/qgstextannotationdialog.cpp
Expand Up @@ -103,7 +103,11 @@ void QgsTextAnnotationDialog::changeCurrentFormat()

void QgsTextAnnotationDialog::on_mFontColorButton_clicked()
{
#if QT_VERSION >= 0x040500
QColor newColor = QColorDialog::getColor( mFontColorButton->color(), 0, tr( "Select font color" ), QColorDialog::ShowAlphaChannel );
#else
QColor newColor = QColorDialog::getColor( mFontColorButton->arrowColor() );
#endif
if ( !newColor.isValid() )
{
return; //dialog canceled
Expand Down

0 comments on commit 26c41b6

Please sign in to comment.