summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/apps/embeddedkonsole/konsole.cpp22
1 files changed, 14 insertions, 8 deletions
diff --git a/core/apps/embeddedkonsole/konsole.cpp b/core/apps/embeddedkonsole/konsole.cpp
index 4480fe2..8885b58 100644
--- a/core/apps/embeddedkonsole/konsole.cpp
+++ b/core/apps/embeddedkonsole/konsole.cpp
@@ -870,19 +870,26 @@ void Konsole::scrollMenuSelected(int index)
TEWidget* te = getTe();
Config cfg("Konsole");
cfg.setGroup("ScrollBar");
- switch( index){
- case -25:
+ int i,j,k;
+#ifdef QT_QWS_OPIE
+i=-25;j=-26;k=-27;
+#else
+i=-24;j=-25;k=-26;
+#endif
+ if(index == i) {
+
te->setScrollbarLocation(0);
cfg.writeEntry("Position",0);
- break;
- case -26:
+ } else if(index == j) {
+
te->setScrollbarLocation(1);
cfg.writeEntry("Position",1);
- break;
- case -27:
+ } else if(index == k) {
+
te->setScrollbarLocation(2);
cfg.writeEntry("Position",2);
- break;
+ }
+
// case -29: {
// bool b=cfg.readBoolEntry("HorzScroll",0);
// cfg.writeEntry("HorzScroll", !b );
@@ -897,7 +904,6 @@ void Konsole::scrollMenuSelected(int index)
// te->setScrollbarLocation( cfg.readNumEntry("Position",2));
// }
// break;
- };
}
void Konsole::editCommandListMenuSelected(int iD)