From c663b6440964f6ac48027143ac9e63298991f9d0 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:33:34 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kwin/kcmkwin/kwinrules/detectwidget.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'kwin/kcmkwin/kwinrules/detectwidget.cpp') diff --git a/kwin/kcmkwin/kwinrules/detectwidget.cpp b/kwin/kcmkwin/kwinrules/detectwidget.cpp index 1a8fa5af5..1a497c8bc 100644 --- a/kwin/kcmkwin/kwinrules/detectwidget.cpp +++ b/kwin/kcmkwin/kwinrules/detectwidget.cpp @@ -22,9 +22,9 @@ #include #include #include -#include -#include -#include +#include +#include +#include #include #include @@ -34,12 +34,12 @@ namespace KWinInternal { -DetectWidget::DetectWidget( QWidget* parent, const char* name ) +DetectWidget::DetectWidget( TQWidget* parent, const char* name ) : DetectWidgetBase( parent, name ) { } -DetectDialog::DetectDialog( QWidget* parent, const char* name ) +DetectDialog::DetectDialog( TQWidget* parent, const char* name ) : KDialogBase( parent, name, true, "", Ok | Cancel ) , grabber( NULL ) { @@ -109,10 +109,10 @@ void DetectDialog::executeDialog() widget->title_label->setText( title ); widget->extrarole_label->setText( extrarole ); widget->machine_label->setText( machine ); - emit detectionDone( exec() == QDialog::Accepted ); + emit detectionDone( exec() == TQDialog::Accepted ); } -QCString DetectDialog::selectedClass() const +TQCString DetectDialog::selectedClass() const { if( widget->use_class->isChecked() || widget->use_role->isChecked()) return wmclass_class; @@ -124,14 +124,14 @@ bool DetectDialog::selectedWholeClass() const return widget->use_whole_class->isChecked(); } -QCString DetectDialog::selectedRole() const +TQCString DetectDialog::selectedRole() const { if( widget->use_role->isChecked()) return role; return ""; } -QString DetectDialog::selectedTitle() const +TQString DetectDialog::selectedTitle() const { return title; } @@ -151,7 +151,7 @@ NET::WindowType DetectDialog::selectedType() const return type; } -QCString DetectDialog::selectedMachine() const +TQCString DetectDialog::selectedMachine() const { return machine; } @@ -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 QDialog( NULL, NULL, true, WX11BypassWM ); + grabber = new TQDialog( NULL, NULL, true, WX11BypassWM ); grabber->move( -1000, -1000 ); grabber->show(); grabber->grabMouse( crossCursor ); grabber->installEventFilter( this ); } -bool DetectDialog::eventFilter( QObject* o, QEvent* e ) +bool DetectDialog::eventFilter( TQObject* o, TQEvent* e ) { if( o != grabber ) return false; - if( e->type() != QEvent::MouseButtonRelease ) + if( e->type() != TQEvent::MouseButtonRelease ) return false; delete grabber; grabber = NULL; - if( static_cast< QMouseEvent* >( e )->button() != LeftButton ) + if( static_cast< TQMouseEvent* >( e )->button() != LeftButton ) { emit detectionDone( false ); return true; -- cgit v1.2.1