[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/kcontrol/konq
From: Stephan Binner <binner () kde ! org>
Date: 2004-03-28 20:22:29
Message-ID: 20040328202229.A5F9F997E () office ! kde ! org
[Download RAW message or body]
CVS commit by binner:
Disable mouse wheel checkbox if only one desktop is configure
M +7 -1 desktop.cpp 1.29
M +1 -0 desktop.h 1.8
--- kdebase/kcontrol/konq/desktop.cpp #1.28:1.29
@@ -167,5 +167,7 @@ void KDesktopConfig::load()
_wheelOption->setChecked(config->readBoolEntry("WheelSwitchesWorkspace",false));
- if (config->entryIsImmutable("WheelSwitchesWorkspace"))
+ _wheelOptionImmutable = config->entryIsImmutable("WheelSwitchesWorkspace");
+
+ if (_wheelOptionImmutable || n<2)
_wheelOption->setEnabled(false);
@@ -224,4 +226,6 @@ void KDesktopConfig::defaults()
_wheelOption->setChecked(false);
+ if (!_wheelOptionImmutable)
+ _wheelOption->setEnabled(true);
emit changed(false);
@@ -241,4 +245,6 @@ void KDesktopConfig::slotValueChanged(in
_nameInput[i]->setText(i18n("Desktop %1").arg(i+1));
}
+ if (!_wheelOptionImmutable)
+ _wheelOption->setEnabled(n>1);
emit changed(true);
}
--- kdebase/kcontrol/konq/desktop.h #1.7:1.8
@@ -54,4 +54,5 @@ class KDesktopConfig : public KCModule
KLineEdit *_nameInput[maxDesktops];
QCheckBox *_wheelOption;
+ bool _wheelOptionImmutable;
};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic