Skip to content

Commit 7f7de2f

Browse files
author
jef
committed
yet another Qt 4.3 fix
git-svn-id: http://svn.osgeo.org/qgis/trunk@12203 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 12f3400 commit 7f7de2f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/gui/qgscolorbutton.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,11 @@ void QgsColorButtonV2::setColor( const QColor &color )
9090
p.setPen(Qt::NoPen);
9191
p.setRenderHint(QPainter::Antialiasing);
9292
p.setBrush(color);
93+
#if QT_VERSION >= 0x040400
9394
p.drawRoundedRect(rect, 4, 4);
95+
#else
96+
p.drawRect(rect);
97+
#endif
9498
p.end();
9599

96100
// set this pixmap as icon

0 commit comments

Comments
 (0)