Allow matching also the title in the detect dialog.
svn path=/trunk/kdebase/kwin/; revision=375450
This commit is contained in:
parent
da77357e8e
commit
cf499ce821
2 changed files with 16 additions and 4 deletions
|
@ -24,6 +24,7 @@
|
||||||
#include <kwin.h>
|
#include <kwin.h>
|
||||||
#include <qlabel.h>
|
#include <qlabel.h>
|
||||||
#include <qradiobutton.h>
|
#include <qradiobutton.h>
|
||||||
|
#include <qcheckbox.h>
|
||||||
|
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include <X11/Xatom.h>
|
#include <X11/Xatom.h>
|
||||||
|
@ -137,10 +138,7 @@ QString DetectDialog::selectedTitle() const
|
||||||
|
|
||||||
Rules::StringMatch DetectDialog::titleMatch() const
|
Rules::StringMatch DetectDialog::titleMatch() const
|
||||||
{
|
{
|
||||||
#if KDE_IS_VERSION( 3, 3, 90 )
|
return widget->match_title->isChecked() ? Rules::ExactMatch : Rules::UnimportantMatch;
|
||||||
#warning Offer possibilities here
|
|
||||||
#endif
|
|
||||||
return Rules::UnimportantMatch;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DetectDialog::selectedWholeApp() const
|
bool DetectDialog::selectedWholeApp() const
|
||||||
|
|
|
@ -12,6 +12,9 @@
|
||||||
<height>325</height>
|
<height>325</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="caption">
|
||||||
|
<string>Form3</string>
|
||||||
|
</property>
|
||||||
<grid>
|
<grid>
|
||||||
<property name="name">
|
<property name="name">
|
||||||
<cstring>unnamed</cstring>
|
<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>
|
<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>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget class="QCheckBox">
|
||||||
|
<property name="name">
|
||||||
|
<cstring>match_title</cstring>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Match also window &title</string>
|
||||||
|
</property>
|
||||||
|
<property name="accel">
|
||||||
|
<string>Alt+T</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
</vbox>
|
</vbox>
|
||||||
</widget>
|
</widget>
|
||||||
</grid>
|
</grid>
|
||||||
|
|
Loading…
Reference in a new issue