use Qt::ToolTip windowFlags to identify tooltip widgets
svn path=/trunk/KDE/kdebase/workspace/; revision=1036142
This commit is contained in:
parent
444427464b
commit
bc2cb84b6e
1 changed files with 1 additions and 2 deletions
|
@ -56,8 +56,7 @@ QPixmap PaintRedirector::performPendingPaint()
|
|||
bool PaintRedirector::isToolTip( QWidget *object ) const
|
||||
{
|
||||
// ### We need a more reliable way of doing this
|
||||
return object->metaObject()->className() == QString("QWidget") &&
|
||||
object->objectName() != QString("decoration widget");
|
||||
return object->windowFlags() & Qt::ToolTip;
|
||||
}
|
||||
|
||||
bool PaintRedirector::eventFilter( QObject* o, QEvent* e )
|
||||
|
|
Loading…
Reference in a new issue