From 117254f20b1767ece4bd97684b0691ef96d8c499 Mon Sep 17 00:00:00 2001 From: Bram Schoenmakers Date: Fri, 22 Aug 2008 19:21:25 +0000 Subject: [PATCH] Respect option "Show window button tooltips". BUG:162648 svn path=/branches/KDE/4.1/kdebase/workspace/; revision=851037 --- lib/kdecoration.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/kdecoration.cpp b/lib/kdecoration.cpp index c23cec0e58..b449cc8111 100644 --- a/lib/kdecoration.cpp +++ b/lib/kdecoration.cpp @@ -82,7 +82,8 @@ void KDecoration::createMainWidget( Qt::WFlags flags ) QWidget *w = new QWidget( initialParentWidget(), initialWFlags() | flags ); w->setObjectName("decoration widget"); w->setAttribute( Qt::WA_PaintOnScreen ); - w->setAttribute( Qt::WA_AlwaysShowToolTips ); + if ( options()->showTooltips() ) + w->setAttribute( Qt::WA_AlwaysShowToolTips ); setMainWidget(w); }