diff --git a/kcmkwin/kwinrules/detectwidget.cpp b/kcmkwin/kwinrules/detectwidget.cpp index a6368cc0ba..ff9e137ecc 100644 --- a/kcmkwin/kwinrules/detectwidget.cpp +++ b/kcmkwin/kwinrules/detectwidget.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include +#include #include "detectwidget.h" #include @@ -119,7 +119,7 @@ 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() == KDialog::Accepted ); } QByteArray DetectDialog::selectedClass() const @@ -171,7 +171,7 @@ 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( 0, Qt::WX11BypassWM ); + grabber = new KDialog( 0, Qt::WX11BypassWM ); grabber->move( -1000, -1000 ); grabber->show(); grabber->grabMouse( Qt::CrossCursor ); diff --git a/kcmkwin/kwinrules/detectwidget.h b/kcmkwin/kwinrules/detectwidget.h index 047eb11c8e..c92a41bf84 100644 --- a/kcmkwin/kwinrules/detectwidget.h +++ b/kcmkwin/kwinrules/detectwidget.h @@ -22,7 +22,7 @@ #include "ui_detectwidgetbase.h" -#include +#include #include #include "../../rules.h" @@ -83,7 +83,7 @@ class DetectDialog QByteArray extrarole; QByteArray machine; DetectWidget* widget; - QDialog* grabber; + KDialog* grabber; KWindowInfo info; };