-rw-r--r-- | core/apps/embeddedkonsole/konsole.cpp | 34 |
1 files changed, 20 insertions, 14 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 @@ -872,15 +872,22 @@ void Konsole::scrollMenuSelected(int index) cfg.setGroup("ScrollBar"); - switch( index){ - case -25: - te->setScrollbarLocation(0); - cfg.writeEntry("Position",0); - break; - case -26: - te->setScrollbarLocation(1); - cfg.writeEntry("Position",1); - break; - case -27: - te->setScrollbarLocation(2); - cfg.writeEntry("Position",2); - break; + 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); + } else if(index == j) { + + te->setScrollbarLocation(1); + cfg.writeEntry("Position",1); + } else if(index == k) { + + te->setScrollbarLocation(2); + cfg.writeEntry("Position",2); + } + // case -29: { @@ -899,3 +906,2 @@ void Konsole::scrollMenuSelected(int index) // break; - }; } |