-rw-r--r-- | core/apps/embeddedkonsole/konsole.cpp | 22 |
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 | |||
@@ -867,25 +867,32 @@ void Konsole::setColor() | |||
867 | void Konsole::scrollMenuSelected(int index) | 867 | void Konsole::scrollMenuSelected(int index) |
868 | { | 868 | { |
869 | qDebug( "scrollbar menu %d",index); | 869 | qDebug( "scrollbar menu %d",index); |
870 | TEWidget* te = getTe(); | 870 | TEWidget* te = getTe(); |
871 | Config cfg("Konsole"); | 871 | Config cfg("Konsole"); |
872 | cfg.setGroup("ScrollBar"); | 872 | cfg.setGroup("ScrollBar"); |
873 | switch( index){ | 873 | int i,j,k; |
874 | case -25: | 874 | #ifdef QT_QWS_OPIE |
875 | i=-25;j=-26;k=-27; | ||
876 | #else | ||
877 | i=-24;j=-25;k=-26; | ||
878 | #endif | ||
879 | if(index == i) { | ||
880 | |||
875 | te->setScrollbarLocation(0); | 881 | te->setScrollbarLocation(0); |
876 | cfg.writeEntry("Position",0); | 882 | cfg.writeEntry("Position",0); |
877 | break; | 883 | } else if(index == j) { |
878 | case -26: | 884 | |
879 | te->setScrollbarLocation(1); | 885 | te->setScrollbarLocation(1); |
880 | cfg.writeEntry("Position",1); | 886 | cfg.writeEntry("Position",1); |
881 | break; | 887 | } else if(index == k) { |
882 | case -27: | 888 | |
883 | te->setScrollbarLocation(2); | 889 | te->setScrollbarLocation(2); |
884 | cfg.writeEntry("Position",2); | 890 | cfg.writeEntry("Position",2); |
885 | break; | 891 | } |
892 | |||
886 | // case -29: { | 893 | // case -29: { |
887 | // bool b=cfg.readBoolEntry("HorzScroll",0); | 894 | // bool b=cfg.readBoolEntry("HorzScroll",0); |
888 | // cfg.writeEntry("HorzScroll", !b ); | 895 | // cfg.writeEntry("HorzScroll", !b ); |
889 | // cfg.write(); | 896 | // cfg.write(); |
890 | // if(cfg.readNumEntry("Position",2) == 0) { | 897 | // if(cfg.readNumEntry("Position",2) == 0) { |
891 | // te->setScrollbarLocation(1); | 898 | // te->setScrollbarLocation(1); |
@@ -894,13 +901,12 @@ void Konsole::scrollMenuSelected(int index) | |||
894 | // te->setScrollbarLocation(0); | 901 | // te->setScrollbarLocation(0); |
895 | // te->setWrapAt(120); | 902 | // te->setWrapAt(120); |
896 | // } | 903 | // } |
897 | // te->setScrollbarLocation( cfg.readNumEntry("Position",2)); | 904 | // te->setScrollbarLocation( cfg.readNumEntry("Position",2)); |
898 | // } | 905 | // } |
899 | // break; | 906 | // break; |
900 | }; | ||
901 | } | 907 | } |
902 | 908 | ||
903 | void Konsole::editCommandListMenuSelected(int iD) | 909 | void Konsole::editCommandListMenuSelected(int iD) |
904 | { | 910 | { |
905 | // QString temp; | 911 | // QString temp; |
906 | // qDebug( temp.sprintf("edit command list %d",iD)); | 912 | // qDebug( temp.sprintf("edit command list %d",iD)); |