mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
kwin: use KEditListWidget as window classes editor in dimscreen effect KCM
more convenient than KLineEdit Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
2dca510dc2
commit
b6c58628a6
2 changed files with 15 additions and 21 deletions
|
@ -10,41 +10,35 @@
|
|||
<height>161</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0" colspan="1">
|
||||
<layout class="QVBoxLayout" name="boxLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="windowClassesLabel">
|
||||
<property name="text">
|
||||
<string>&Window Classes:</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
<property name="buddy">
|
||||
<cstring>kcfg_WindowClasses</cstring>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1" colspan="1">
|
||||
<widget class="KLineEdit" name="kcfg_WindowClasses">
|
||||
<property name="placeholderText">
|
||||
<string>Apply effect to the win&dow classes</string>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="KEditListWidget" name="kcfg_WindowClasses">
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="2">
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<tabstops>
|
||||
<tabstop>kcfg_WindowClasses</tabstop>
|
||||
</tabstops>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>KEditListWidget</class>
|
||||
<extends>QWidget</extends>
|
||||
<header>keditlistwidget.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
|
|
@ -732,7 +732,7 @@ void PresentWindowsEffect::grabbedKeyboardEvent(QKeyEvent *e)
|
|||
}
|
||||
break;
|
||||
case 0:
|
||||
return; // HACK: Workaround for Qt bug on unbound keys (#178547)
|
||||
return; // HACK: Workaround for unbound keys (#178547)
|
||||
default:
|
||||
if (!e->text().isEmpty()) {
|
||||
m_windowFilter.append(e->text());
|
||||
|
|
Loading…
Add table
Reference in a new issue