From cf499ce82173fac495a18480a379a5cc0f088483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 4 Jan 2005 14:10:14 +0000 Subject: [PATCH] Allow matching also the title in the detect dialog. svn path=/trunk/kdebase/kwin/; revision=375450 --- kcmkwin/kwinrules/detectwidget.cpp | 6 ++---- kcmkwin/kwinrules/detectwidgetbase.ui | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/kcmkwin/kwinrules/detectwidget.cpp b/kcmkwin/kwinrules/detectwidget.cpp index a4587f8317..bf38605e60 100644 --- a/kcmkwin/kwinrules/detectwidget.cpp +++ b/kcmkwin/kwinrules/detectwidget.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #include #include @@ -137,10 +138,7 @@ QString DetectDialog::selectedTitle() const Rules::StringMatch DetectDialog::titleMatch() const { -#if KDE_IS_VERSION( 3, 3, 90 ) -#warning Offer possibilities here -#endif - return Rules::UnimportantMatch; + return widget->match_title->isChecked() ? Rules::ExactMatch : Rules::UnimportantMatch; } bool DetectDialog::selectedWholeApp() const diff --git a/kcmkwin/kwinrules/detectwidgetbase.ui b/kcmkwin/kwinrules/detectwidgetbase.ui index 949dd3a416..f822d145f6 100644 --- a/kcmkwin/kwinrules/detectwidgetbase.ui +++ b/kcmkwin/kwinrules/detectwidgetbase.ui @@ -12,6 +12,9 @@ 325 + + Form3 + unnamed @@ -201,6 +204,17 @@ With some (non-KDE) applications whole window class can be sufficient for selecting a specific window in an application, as they set whole window class to contain both application and window role. + + + match_title + + + Match also window &title + + + Alt+T + +