From fe6805d25cd4e20220a7c4aed1e1edb407c678db Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Wed, 7 Dec 2005 10:51:10 +0000 Subject: [PATCH] Use qobject_cast svn path=/trunk/KDE/kdebase/workspace/; revision=486278 --- workspace.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workspace.cpp b/workspace.cpp index 15e791e7bb..1744badc5d 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -28,6 +28,7 @@ License. See the file "COPYING" for the exact licensing terms. #include #include #include +#include #include #include "plugins.h" @@ -1715,7 +1716,7 @@ unsigned int Workspace::sendFakedMouseEvent( QPoint pos, WId w, MouseEmulation t if ( !w ) return state; QWidget* widget = QWidget::find( w ); - if ( (!widget || widget->inherits("QToolButton") ) && !findClient( WindowMatchPredicate( w )) ) + if ( (!widget || qobject_cast(widget)) && !findClient( WindowMatchPredicate( w )) ) { int x, y; Window xw;