use Qt::ToolTip windowFlags to identify tooltip widgets

svn path=/trunk/KDE/kdebase/workspace/; revision=1036142
This commit is contained in:
Hugo Pereira Da Costa 2009-10-16 17:17:08 +00:00
parent 444427464b
commit bc2cb84b6e

View file

@ -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 )