Changeset View
Changeset View
Standalone View
Standalone View
kstyle/breezehelper.cpp
Show First 20 Lines • Show All 1299 Lines • ▼ Show 20 Line(s) | 1299 | { | |||
---|---|---|---|---|---|
1300 | // define polygon | 1300 | // define polygon | ||
1301 | QPolygonF arrow; | 1301 | QPolygonF arrow; | ||
1302 | switch( orientation ) | 1302 | switch( orientation ) | ||
1303 | { | 1303 | { | ||
1304 | case ArrowUp: arrow = QVector<QPointF>{QPointF( -4, 2 ), QPointF( 0, -2 ), QPointF( 4, 2 )}; break; | 1304 | case ArrowUp: arrow = QVector<QPointF>{QPointF( -4, 2 ), QPointF( 0, -2 ), QPointF( 4, 2 )}; break; | ||
1305 | case ArrowDown: arrow = QVector<QPointF>{QPointF( -4, -2 ), QPointF( 0, 2 ), QPointF( 4, -2 )}; break; | 1305 | case ArrowDown: arrow = QVector<QPointF>{QPointF( -4, -2 ), QPointF( 0, 2 ), QPointF( 4, -2 )}; break; | ||
1306 | case ArrowLeft: arrow = QVector<QPointF>{QPointF( 2, -4 ), QPointF( -2, 0 ), QPointF( 2, 4 )}; break; | 1306 | case ArrowLeft: arrow = QVector<QPointF>{QPointF( 2, -4 ), QPointF( -2, 0 ), QPointF( 2, 4 )}; break; | ||
1307 | case ArrowRight: arrow = QVector<QPointF>{QPointF( -2, -4 ), QPointF( 2, 0 ), QPointF( -2, 4 )}; break; | 1307 | case ArrowRight: arrow = QVector<QPointF>{QPointF( -2, -4 ), QPointF( 2, 0 ), QPointF( -2, 4 )}; break; | ||
1308 | case ArrowDown_Small: arrow = QVector<QPointF>{QPointF( 2, 4 ), QPointF( 4, 6 ), QPointF( 6, 4 )}; break; | ||||
ndavis: The vector I'm talking about | |||||
1308 | default: break; | 1309 | default: break; | ||
1309 | } | 1310 | } | ||
1310 | 1311 | | |||
1311 | painter->save(); | 1312 | painter->save(); | ||
1312 | painter->setRenderHints( QPainter::Antialiasing ); | 1313 | painter->setRenderHints( QPainter::Antialiasing ); | ||
1313 | painter->translate( QRectF( rect ).center() ); | 1314 | painter->translate( QRectF( rect ).center() ); | ||
1314 | painter->setBrush( Qt::NoBrush ); | 1315 | painter->setBrush( Qt::NoBrush ); | ||
1315 | painter->setPen( QPen( color, 1.1 ) ); | 1316 | painter->setPen( QPen( color, 1.1 ) ); | ||
▲ Show 20 Lines • Show All 287 Lines • Show Last 20 Lines |
The vector I'm talking about