desktop grid: add option to hide buttons
one does indeed not change the desktop count that often... BUG: 352588 FIXED-IN: 5.5 REVIEW: 125228
This commit is contained in:
parent
4fc9f44d2a
commit
fbfc573a8a
3 changed files with 14 additions and 3 deletions
|
@ -1126,7 +1126,8 @@ void DesktopGridEffect::setup()
|
|||
bool enableRemove = effects->numberOfDesktops() > 1;
|
||||
|
||||
QHash< DesktopButtonsView*, EffectWindow* >::iterator it = m_desktopButtonsViews.begin();
|
||||
for (int i = 0; i < effects->numScreens(); ++i) {
|
||||
const int n = DesktopGridConfig::showAddRemove() ? effects->numScreens() : 0;
|
||||
for (int i = 0; i < n; ++i) {
|
||||
DesktopButtonsView *view;
|
||||
if (it == m_desktopButtonsViews.end()) {
|
||||
view = new DesktopButtonsView();
|
||||
|
|
|
@ -24,5 +24,8 @@
|
|||
<entry name="PresentWindows" type="Bool">
|
||||
<default>true</default>
|
||||
</entry>
|
||||
<entry name="ShowAddRemove" type="Bool">
|
||||
<default>true</default>
|
||||
</entry>
|
||||
</group>
|
||||
</kcfg>
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>&Border width:</string>
|
||||
<string>Border wid&th:</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
|
@ -142,7 +142,7 @@
|
|||
<item row="4" column="0">
|
||||
<widget class="QLabel" name="layoutRowsLabel">
|
||||
<property name="text">
|
||||
<string>Number of &rows:</string>
|
||||
<string>N&umber of rows:</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
|
@ -191,6 +191,13 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="0" colspan="2">
|
||||
<widget class="QCheckBox" name="kcfg_ShowAddRemove">
|
||||
<property name="text">
|
||||
<string>Show buttons to alter count of virtual desktops</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
Loading…
Reference in a new issue