Changeset View
Changeset View
Standalone View
Standalone View
kstyle/breezehelper.cpp
Context not available. | |||||
1368 | { | 1368 | { | ||
---|---|---|---|---|---|
1369 | case ButtonClose: | 1369 | case ButtonClose: | ||
1370 | { | 1370 | { | ||
1371 | painter->drawLine( QPointF( 5, 5 ), QPointF( 13, 13 ) ); | 1371 | painter->drawLine( QPointF( 4.5, 4.5 ), QPointF( 13.5, 13.5 ) ); | ||
1372 | painter->drawLine( 13, 5, 5, 13 ); | 1372 | painter->drawLine( QPointF(13.5, 4.5), QPointF(4.5, 13.5) ); | ||
1373 | break; | 1373 | break; | ||
1374 | } | 1374 | } | ||
1375 | 1375 | | |||
1376 | case ButtonMaximize: | 1376 | case ButtonMaximize: | ||
1377 | { | 1377 | { | ||
1378 | painter->drawPolyline( QVector<QPointF>{ | 1378 | //large square | ||
1379 | QPointF( 4, 11 ), | 1379 | pen.setJoinStyle( Qt::RoundJoin ); | ||
1380 | QPointF( 9, 6 ), | 1380 | painter->setPen( pen ); | ||
1381 | QPointF( 14, 11 )}); | 1381 | | ||
1382 | painter->drawRect( QRectF( QPointF( 4.5, 4.5 ), QPointF( 13.5, 13.5 ) ) ); | ||||
1382 | break; | 1383 | break; | ||
1383 | } | 1384 | } | ||
1384 | 1385 | | |||
1385 | case ButtonMinimize: | 1386 | case ButtonMinimize: | ||
1386 | { | 1387 | { | ||
1387 | 1388 | | |||
1388 | painter->drawPolyline(QVector<QPointF>{ | 1389 | //tiny filled square | ||
1389 | QPointF( 4, 7 ), | 1390 | pen.setJoinStyle( Qt::RoundJoin ); | ||
1390 | QPointF( 9, 12 ), | 1391 | painter->setBrush( pen.color() ); | ||
1391 | QPointF( 14, 7 )} ); | 1392 | painter->setPen( pen ); | ||
1393 | | ||||
1394 | painter->drawRect( QRectF( QPointF( 7.5, 7.5 ), QPointF( 10.5, 10.5 ) ) ); | ||||
1392 | break; | 1395 | break; | ||
1393 | } | 1396 | } | ||
1394 | 1397 | | |||
Context not available. | |||||
1396 | { | 1399 | { | ||
1397 | pen.setJoinStyle( Qt::RoundJoin ); | 1400 | pen.setJoinStyle( Qt::RoundJoin ); | ||
1398 | painter->setPen( pen ); | 1401 | painter->setPen( pen ); | ||
1399 | painter->drawPolygon( QVector<QPointF>{ | 1402 | | ||
1400 | QPointF( 4.5, 9 ), | 1403 | //disable antialiasing to remove blur at small sizes | ||
1401 | QPointF( 9, 4.5 ), | 1404 | painter->setRenderHints( QPainter::Antialiasing, false ); | ||
1402 | QPointF( 13.5, 9 ), | 1405 | | ||
1403 | QPointF( 9, 13.5 )}); | 1406 | //overlapping windows icon | ||
1407 | painter->drawRect( QRectF( QPointF( 4, 6 ), QPointF( 11, 13 ) ) ); | ||||
1408 | painter->drawPolyline( QVector<QPointF>{ | ||||
1409 | QPointF( 6, 6 ), | ||||
1410 | QPointF( 6, 4 ), | ||||
1411 | QPointF( 13, 4 ), | ||||
1412 | QPointF( 13, 11 ), | ||||
1413 | QPointF( 11, 11 )} ); | ||||
1404 | break; | 1414 | break; | ||
1405 | } | 1415 | } | ||
1406 | 1416 | | |||
Context not available. |