Skip to content

Commit

Permalink
yet another Qt 4.3 fix
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@12203 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Nov 20, 2009
1 parent 12f3400 commit 7f7de2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/qgscolorbutton.cpp
Expand Up @@ -90,7 +90,11 @@ void QgsColorButtonV2::setColor( const QColor &color )
p.setPen(Qt::NoPen);
p.setRenderHint(QPainter::Antialiasing);
p.setBrush(color);
#if QT_VERSION >= 0x040400
p.drawRoundedRect(rect, 4, 4);
#else
p.drawRect(rect);
#endif
p.end();

// set this pixmap as icon
Expand Down

0 comments on commit 7f7de2f

Please sign in to comment.