-rw-r--r-- | core/apps/embeddedkonsole/konsole.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/apps/embeddedkonsole/konsole.cpp b/core/apps/embeddedkonsole/konsole.cpp index 63073c4..f3792e4 100644 --- a/core/apps/embeddedkonsole/konsole.cpp +++ b/core/apps/embeddedkonsole/konsole.cpp | |||
@@ -329,25 +329,25 @@ void Konsole::init(const char* _pgm, QStrList & _args) | |||
329 | connect( a, SIGNAL( activated() ), this, SLOT( hitDown() ) ); a->addTo( toolbar ); | 329 | connect( a, SIGNAL( activated() ), this, SLOT( hitDown() ) ); a->addTo( toolbar ); |
330 | */ | 330 | */ |
331 | 331 | ||
332 | secondToolBar = new QPEToolBar( this ); | 332 | secondToolBar = new QPEToolBar( this ); |
333 | secondToolBar->setHorizontalStretchable( TRUE ); | 333 | secondToolBar->setHorizontalStretchable( TRUE ); |
334 | 334 | ||
335 | commonCombo = new QComboBox( secondToolBar ); | 335 | commonCombo = new QComboBox( secondToolBar ); |
336 | commonCombo->setMaximumWidth(236); | 336 | commonCombo->setMaximumWidth(236); |
337 | 337 | ||
338 | editCommandListMenu->insertItem( tr( "Quick Edit" ) ); | 338 | editCommandListMenu->insertItem( tr( "Quick Edit" ) ); |
339 | if( listHidden) { | 339 | if( listHidden) { |
340 | secondToolBar->hide(); | 340 | secondToolBar->hide(); |
341 | editCommandListMenu->setItemEnabled(-22 ,FALSE); | 341 | editCommandListMenu->setItemEnabled(-23 ,FALSE); |
342 | } | 342 | } |
343 | editCommandListMenu->insertItem(tr( "Edit" ) ); | 343 | editCommandListMenu->insertItem(tr( "Edit" ) ); |
344 | 344 | ||
345 | cfg.setGroup("Commands"); | 345 | cfg.setGroup("Commands"); |
346 | commonCombo->setInsertionPolicy(QComboBox::AtCurrent); | 346 | commonCombo->setInsertionPolicy(QComboBox::AtCurrent); |
347 | 347 | ||
348 | initCommandList(); | 348 | initCommandList(); |
349 | // for (int i = 0; commonCmds[i] != NULL; i++) { | 349 | // for (int i = 0; commonCmds[i] != NULL; i++) { |
350 | // commonCombo->insertItem( commonCmds[i], i ); | 350 | // commonCombo->insertItem( commonCmds[i], i ); |
351 | // tmp = cfg.readEntry( QString::number(i),""); | 351 | // tmp = cfg.readEntry( QString::number(i),""); |
352 | // if(tmp != "") | 352 | // if(tmp != "") |
353 | // commonCombo->changeItem( tmp,i ); | 353 | // commonCombo->changeItem( tmp,i ); |
@@ -825,36 +825,36 @@ void Konsole::scrollMenuSelected(int index) | |||
825 | void Konsole::editCommandListMenuSelected(int iD) | 825 | void 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(-23 ,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"); |
842 | configMenu->setItemEnabled(-22 ,TRUE); | 842 | configMenu->setItemEnabled(-23 ,TRUE); |
843 | 843 | ||
844 | if(cfg.readEntry("EditEnabled","FALSE")=="TRUE") { | 844 | if(cfg.readEntry("EditEnabled","FALSE")=="TRUE") { |
845 | configMenu->setItemChecked(-22,TRUE); | 845 | configMenu->setItemChecked(-23,TRUE); |
846 | commonCombo->setEditable( TRUE ); | 846 | commonCombo->setEditable( TRUE ); |
847 | } else { | 847 | } else { |
848 | configMenu->setItemChecked(-22,FALSE); | 848 | configMenu->setItemChecked(-23,FALSE); |
849 | commonCombo->setEditable( FALSE ); | 849 | commonCombo->setEditable( FALSE ); |
850 | } | 850 | } |
851 | } | 851 | } |
852 | } | 852 | } |
853 | if( iD == -23) { | 853 | if( iD == -23) { |
854 | cfg.setGroup("Commands"); | 854 | cfg.setGroup("Commands"); |
855 | // qDebug("enableCommandEdit"); | 855 | // qDebug("enableCommandEdit"); |
856 | if( !configMenu->isItemChecked(iD) ) { | 856 | if( !configMenu->isItemChecked(iD) ) { |
857 | commonCombo->setEditable( TRUE ); | 857 | commonCombo->setEditable( TRUE ); |
858 | configMenu->setItemChecked(iD,TRUE); | 858 | configMenu->setItemChecked(iD,TRUE); |
859 | commonCombo->setCurrentItem(0); | 859 | commonCombo->setCurrentItem(0); |
860 | cfg.writeEntry("EditEnabled","TRUE"); | 860 | cfg.writeEntry("EditEnabled","TRUE"); |