Changeset View
Changeset View
Standalone View
Standalone View
kstyle/breezehelper.cpp
Show First 20 Lines • Show All 1249 Lines • ▼ Show 20 Line(s) | 1249 | { | |||
---|---|---|---|---|---|
1250 | painter->setPen( Qt::NoPen ); | 1250 | painter->setPen( Qt::NoPen ); | ||
1251 | painter->setBrush( color ); | 1251 | painter->setBrush( color ); | ||
1252 | painter->drawRoundedRect( baseRect, radius, radius ); | 1252 | painter->drawRoundedRect( baseRect, radius, radius ); | ||
1253 | } | 1253 | } | ||
1254 | 1254 | | |||
1255 | 1255 | | |||
1256 | } | 1256 | } | ||
1257 | 1257 | | |||
1258 | | ||||
1259 | //______________________________________________________________________________ | ||||
1260 | void Helper::renderScrollBarBorder( | ||||
1261 | QPainter* painter, const QRect& rect, | ||||
1262 | const QColor& color ) const | ||||
1263 | { | ||||
1264 | | ||||
1265 | // content | ||||
1266 | if( color.isValid() ) | ||||
1267 | { | ||||
1268 | painter->setPen( Qt::NoPen ); | ||||
1269 | painter->setBrush( color ); | ||||
1270 | painter->drawRect( rect ); | ||||
1271 | } | ||||
1272 | | ||||
1273 | } | ||||
1274 | | ||||
1258 | //______________________________________________________________________________ | 1275 | //______________________________________________________________________________ | ||
1259 | void Helper::renderTabBarTab( QPainter* painter, const QRect& rect, const QColor& color, const QColor& outline, Corners corners ) const | 1276 | void Helper::renderTabBarTab( QPainter* painter, const QRect& rect, const QColor& color, const QColor& outline, Corners corners ) const | ||
1260 | { | 1277 | { | ||
1261 | 1278 | | |||
1262 | // setup painter | 1279 | // setup painter | ||
1263 | painter->setRenderHint( QPainter::Antialiasing, true ); | 1280 | painter->setRenderHint( QPainter::Antialiasing, true ); | ||
1264 | 1281 | | |||
1265 | QRectF frameRect( rect ); | 1282 | QRectF frameRect( rect ); | ||
▲ Show 20 Lines • Show All 408 Lines • Show Last 20 Lines |