From c6da10c15e13ac1bb94c4dec20aa461e6346da99 Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Fri, 12 Dec 2014 16:46:23 +0100 Subject: [PATCH] implemented context help button --- windec/kdecoration2/breezebutton.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/windec/kdecoration2/breezebutton.cpp b/windec/kdecoration2/breezebutton.cpp index 55225a78..dea7cd68 100644 --- a/windec/kdecoration2/breezebutton.cpp +++ b/windec/kdecoration2/breezebutton.cpp @@ -273,6 +273,19 @@ namespace Breeze break; } + case KDecoration2::DecorationButtonType::ContextHelp: + { + QPainterPath path; + path.moveTo( 5, 6 ); + path.arcTo( QRectF( 5, 3.5, 8, 5 ), 180, -180 ); + path.cubicTo( QPointF(12.5, 9.5), QPointF( 9, 7.5 ), QPointF( 9, 11.5 ) ); + painter->drawPath( path ); + + painter->drawPoint( 9, 15 ); + + break; + } + default: break; }