Allow matching also the title in the detect dialog.

svn path=/trunk/kdebase/kwin/; revision=375450
icc-effect-5.14.5
Luboš Luňák 2005-01-04 14:10:14 +00:00
parent da77357e8e
commit cf499ce821
2 changed files with 16 additions and 4 deletions

View File

@ -24,6 +24,7 @@
#include <kwin.h>
#include <qlabel.h>
#include <qradiobutton.h>
#include <qcheckbox.h>
#include <X11/Xlib.h>
#include <X11/Xatom.h>
@ -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

View File

@ -12,6 +12,9 @@
<height>325</height>
</rect>
</property>
<property name="caption">
<string>Form3</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
@ -201,6 +204,17 @@
<string>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.</string>
</property>
</widget>
<widget class="QCheckBox">
<property name="name">
<cstring>match_title</cstring>
</property>
<property name="text">
<string>Match also window &amp;title</string>
</property>
<property name="accel">
<string>Alt+T</string>
</property>
</widget>
</vbox>
</widget>
</grid>