summaryrefslogtreecommitdiffstats
path: root/kwin/kcmkwin/kwinrules/detectwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kwin/kcmkwin/kwinrules/detectwidget.cpp')
-rw-r--r--kwin/kcmkwin/kwinrules/detectwidget.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kwin/kcmkwin/kwinrules/detectwidget.cpp b/kwin/kcmkwin/kwinrules/detectwidget.cpp
index 1a497c8bc..c30ae24ff 100644
--- a/kwin/kcmkwin/kwinrules/detectwidget.cpp
+++ b/kwin/kcmkwin/kwinrules/detectwidget.cpp
@@ -161,22 +161,22 @@ void DetectDialog::selectWindow()
// use a dialog, so that all user input is blocked
// use WX11BypassWM and moving away so that it's not actually visible
// grab only mouse, so that keyboard can be used e.g. for switching windows
- grabber = new TQDialog( NULL, NULL, true, WX11BypassWM );
+ grabber = new TQDialog( NULL, NULL, true, (WFlags)WX11BypassWM );
grabber->move( -1000, -1000 );
grabber->show();
- grabber->grabMouse( crossCursor );
+ grabber->grabMouse( tqcrossCursor );
grabber->installEventFilter( this );
}
bool DetectDialog::eventFilter( TQObject* o, TQEvent* e )
{
- if( o != grabber )
+ if( TQT_BASE_OBJECT(o) != TQT_BASE_OBJECT(grabber) )
return false;
if( e->type() != TQEvent::MouseButtonRelease )
return false;
delete grabber;
grabber = NULL;
- if( static_cast< TQMouseEvent* >( e )->button() != LeftButton )
+ if( TQT_TQMOUSEEVENT( e )->button() != Qt::LeftButton )
{
emit detectionDone( false );
return true;