Respect option "Show window button tooltips".

BUG:162648

svn path=/branches/KDE/4.1/kdebase/workspace/; revision=851037
This commit is contained in:
Bram Schoenmakers 2008-08-22 19:21:25 +00:00
parent ad60dbfdb9
commit 117254f20b

View file

@ -82,7 +82,8 @@ void KDecoration::createMainWidget( Qt::WFlags flags )
QWidget *w = new QWidget( initialParentWidget(), initialWFlags() | flags ); QWidget *w = new QWidget( initialParentWidget(), initialWFlags() | flags );
w->setObjectName("decoration widget"); w->setObjectName("decoration widget");
w->setAttribute( Qt::WA_PaintOnScreen ); w->setAttribute( Qt::WA_PaintOnScreen );
w->setAttribute( Qt::WA_AlwaysShowToolTips ); if ( options()->showTooltips() )
w->setAttribute( Qt::WA_AlwaysShowToolTips );
setMainWidget(w); setMainWidget(w);
} }