Changeset View
Changeset View
Standalone View
Standalone View
kdecoration/breezebutton.cpp
Show First 20 Lines • Show All 270 Lines • ▼ Show 20 Line(s) | 196 | { | |||
---|---|---|---|---|---|
271 | } | 271 | } | ||
272 | 272 | | |||
273 | case DecorationButtonType::Shade: | 273 | case DecorationButtonType::Shade: | ||
274 | { | 274 | { | ||
275 | 275 | | |||
276 | if (isChecked()) | 276 | if (isChecked()) | ||
277 | { | 277 | { | ||
278 | 278 | | |||
279 | painter->drawLine( 4, 5, 14, 5 ); | 279 | painter->drawLine( QPointF( 4, 5.5 ), QPointF( 14, 5.5 ) ); | ||
280 | painter->drawPolyline( QVector<QPointF> { | 280 | painter->drawPolyline( QVector<QPointF> { | ||
281 | QPointF( 4, 8 ), | 281 | QPointF( 4, 8 ), | ||
282 | QPointF( 9, 13 ), | 282 | QPointF( 9, 13 ), | ||
283 | QPointF( 14, 8 )} ); | 283 | QPointF( 14, 8 )} ); | ||
284 | 284 | | |||
285 | } else { | 285 | } else { | ||
286 | 286 | | |||
287 | painter->drawLine( 4, 5, 14, 5 ); | 287 | painter->drawLine( QPointF( 4, 5.5 ), QPointF( 14, 5.5 ) ); | ||
288 | painter->drawPolyline( QVector<QPointF> { | 288 | painter->drawPolyline( QVector<QPointF> { | ||
289 | QPointF( 4, 13 ), | 289 | QPointF( 4, 13 ), | ||
290 | QPointF( 9, 8 ), | 290 | QPointF( 9, 8 ), | ||
291 | QPointF( 14, 13 ) }); | 291 | QPointF( 14, 13 ) }); | ||
292 | } | 292 | } | ||
293 | 293 | | |||
294 | break; | 294 | break; | ||
295 | 295 | | |||
Show All 27 Lines | 321 | painter->drawPolyline( QVector<QPointF> { | |||
323 | QPointF( 9, 8 ), | 323 | QPointF( 9, 8 ), | ||
324 | QPointF( 14, 13 ) }); | 324 | QPointF( 14, 13 ) }); | ||
325 | break; | 325 | break; | ||
326 | } | 326 | } | ||
327 | 327 | | |||
328 | 328 | | |||
329 | case DecorationButtonType::ApplicationMenu: | 329 | case DecorationButtonType::ApplicationMenu: | ||
330 | { | 330 | { | ||
331 | painter->drawLine( QPointF( 3.5, 5 ), QPointF( 14.5, 5 ) ); | 331 | painter->drawRect( QRectF( 3.5, 4.5, 11, 1 ) ); | ||
332 | painter->drawLine( QPointF( 3.5, 9 ), QPointF( 14.5, 9 ) ); | 332 | painter->drawRect( QRectF( 3.5, 8.5, 11, 1 ) ); | ||
333 | painter->drawLine( QPointF( 3.5, 13 ), QPointF( 14.5, 13 ) ); | 333 | painter->drawRect( QRectF( 3.5, 12.5, 11, 1 ) ); | ||
334 | break; | 334 | break; | ||
335 | } | 335 | } | ||
336 | 336 | | |||
337 | case DecorationButtonType::ContextHelp: | 337 | case DecorationButtonType::ContextHelp: | ||
338 | { | 338 | { | ||
339 | QPainterPath path; | 339 | QPainterPath path; | ||
340 | path.moveTo( 5, 6 ); | 340 | path.moveTo( 5, 6 ); | ||
341 | path.arcTo( QRectF( 5, 3.5, 8, 5 ), 180, -180 ); | 341 | path.arcTo( QRectF( 5, 3.5, 8, 5 ), 180, -180 ); | ||
342 | path.cubicTo( QPointF(12.5, 9.5), QPointF( 9, 7.5 ), QPointF( 9, 11.5 ) ); | 342 | path.cubicTo( QPointF(12.5, 9.5), QPointF( 9, 7.5 ), QPointF( 9, 11.5 ) ); | ||
343 | painter->drawPath( path ); | 343 | painter->drawPath( path ); | ||
344 | 344 | | |||
345 | painter->drawPoint( 9, 15 ); | 345 | painter->drawRect( QRectF( 9, 15, 0.5, 0.5 ) ); | ||
346 | 346 | | |||
347 | break; | 347 | break; | ||
348 | } | 348 | } | ||
349 | 349 | | |||
350 | default: break; | 350 | default: break; | ||
351 | 351 | | |||
352 | } | 352 | } | ||
353 | 353 | | |||
▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines |