summaryrefslogtreecommitdiff
authorleseb <leseb>2002-07-07 16:07:13 (UTC)
committer leseb <leseb>2002-07-07 16:07:13 (UTC)
commita72877e867e70784e3c865fa2948ac40f72b5c39 (patch) (unidiff)
treead985b59d3658e80617bf820350488c674252e1f
parent72497e9298d84a711114bb49e3c9454fabca50db (diff)
downloadopie-a72877e867e70784e3c865fa2948ac40f72b5c39.zip
opie-a72877e867e70784e3c865fa2948ac40f72b5c39.tar.gz
opie-a72877e867e70784e3c865fa2948ac40f72b5c39.tar.bz2
Fix menu index for scrollbar position
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/embeddedkonsole/konsole.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/apps/embeddedkonsole/konsole.cpp b/core/apps/embeddedkonsole/konsole.cpp
index 8b1e066..36b9b1e 100644
--- a/core/apps/embeddedkonsole/konsole.cpp
+++ b/core/apps/embeddedkonsole/konsole.cpp
@@ -785,57 +785,57 @@ void Konsole::changeCommand(const QString &text, int c)
785 cfg.setGroup("Commands"); 785 cfg.setGroup("Commands");
786 if(commonCmds[c] != text) { 786 if(commonCmds[c] != text) {
787 cfg.writeEntry(QString::number(c),text); 787 cfg.writeEntry(QString::number(c),text);
788 commonCombo->clearEdit(); 788 commonCombo->clearEdit();
789 commonCombo->setCurrentItem(c); 789 commonCombo->setCurrentItem(c);
790 } 790 }
791} 791}
792 792
793void Konsole::setColor() 793void Konsole::setColor()
794{ 794{
795 Config cfg("Konsole"); 795 Config cfg("Konsole");
796 cfg.setGroup("Colors"); 796 cfg.setGroup("Colors");
797 int scheme = cfg.readNumEntry("Schema",1); 797 int scheme = cfg.readNumEntry("Schema",1);
798 if(scheme != 1) colorMenuSelected( -scheme); 798 if(scheme != 1) colorMenuSelected( -scheme);
799} 799}
800 800
801void Konsole::scrollMenuSelected(int index) 801void Konsole::scrollMenuSelected(int index)
802{ 802{
803// QString temp; 803// QString temp;
804// qDebug( temp.sprintf("scrollbar menu %d",index)); 804// qDebug( temp.sprintf("scrollbar menu %d",index));
805 TEWidget* te = getTe(); 805 TEWidget* te = getTe();
806 Config cfg("Konsole"); 806 Config cfg("Konsole");
807 cfg.setGroup("ScrollBar"); 807 cfg.setGroup("ScrollBar");
808 switch( index){ 808 switch( index){
809 case -24: 809 case -25:
810 te->setScrollbarLocation(0); 810 te->setScrollbarLocation(0);
811 cfg.writeEntry("Position",0); 811 cfg.writeEntry("Position",0);
812 break; 812 break;
813 case -25: 813 case -26:
814 te->setScrollbarLocation(1); 814 te->setScrollbarLocation(1);
815 cfg.writeEntry("Position",1); 815 cfg.writeEntry("Position",1);
816 break; 816 break;
817 case -26: 817 case -27:
818 te->setScrollbarLocation(2); 818 te->setScrollbarLocation(2);
819 cfg.writeEntry("Position",2); 819 cfg.writeEntry("Position",2);
820 break; 820 break;
821 }; 821 };
822 822
823} 823}
824 824
825void Konsole::editCommandListMenuSelected(int iD) 825void Konsole::editCommandListMenuSelected(int iD)
826{ 826{
827// QString temp; 827// QString temp;
828// qDebug( temp.sprintf("edit command list %d",iD)); 828// qDebug( temp.sprintf("edit command list %d",iD));
829 TEWidget* te = getTe(); 829 TEWidget* te = getTe();
830 Config cfg("Konsole"); 830 Config cfg("Konsole");
831 cfg.setGroup("Menubar"); 831 cfg.setGroup("Menubar");
832 if( iD == -3) { 832 if( iD == -3) {
833 if(!secondToolBar->isHidden()) { 833 if(!secondToolBar->isHidden()) {
834 secondToolBar->hide(); 834 secondToolBar->hide();
835 configMenu->changeItem( iD,tr( "Show Command List" )); 835 configMenu->changeItem( iD,tr( "Show Command List" ));
836 cfg.writeEntry("Hidden","TRUE"); 836 cfg.writeEntry("Hidden","TRUE");
837 configMenu->setItemEnabled(-22 ,FALSE); 837 configMenu->setItemEnabled(-22 ,FALSE);
838 } else { 838 } else {
839 secondToolBar->show(); 839 secondToolBar->show();
840 configMenu->changeItem( iD,tr( "Hide Command List" )); 840 configMenu->changeItem( iD,tr( "Hide Command List" ));
841 cfg.writeEntry("Hidden","FALSE"); 841 cfg.writeEntry("Hidden","FALSE");