summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/embeddedkonsole/konsole.cpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/core/apps/embeddedkonsole/konsole.cpp b/core/apps/embeddedkonsole/konsole.cpp
index f154bb8..653652a 100644
--- a/core/apps/embeddedkonsole/konsole.cpp
+++ b/core/apps/embeddedkonsole/konsole.cpp
@@ -296,5 +296,5 @@ void Konsole::init(const char* _pgm, QStrList & _args)
commonCombo = new QComboBox( secondToolBar );
-
+ commonCombo->setMaximumWidth(236);
configMenu->insertItem( "Edit Command List");
if( listHidden) {
@@ -302,5 +302,5 @@ void Konsole::init(const char* _pgm, QStrList & _args)
configMenu->setItemEnabled(-20 ,FALSE);
}
-
+
cfg.setGroup("Commands");
commonCombo->setInsertionPolicy(QComboBox::AtCurrent);
@@ -386,5 +386,5 @@ void Konsole::enterCommand(int c)
te->emitText(text);
} else {
- changeCommand( commonCombo->text(c), c);
+ changeCommand( commonCombo->text(c), c);
}
}
@@ -578,6 +578,5 @@ void Konsole::colorMenuSelected(int iD)
{ // this is NOT pretty, elegant or anything else besides functional
// QString temp;
-// temp.sprintf("%d", iD);
-// qDebug(temp);
+// qDebug( temp.sprintf("%d", iD));
TEWidget* te = getTe();
Config cfg("Konsole");
@@ -686,7 +685,6 @@ void Konsole::colorMenuSelected(int iD)
void Konsole::configMenuSelected(int iD)
{
-// QString temp;
-// temp.sprintf("%d",iD);
-// qDebug(temp);
+ QString temp;
+ qDebug( temp.sprintf("%d",iD));
TEWidget* te = getTe();
Config cfg("Konsole");
@@ -752,5 +750,5 @@ void Konsole::changeCommand(const QString &text, int c)
cfg.writeEntry(QString::number(c),text);
commonCombo->clearEdit();
- commonCombo->setCurrentItem(c);
+ commonCombo->setCurrentItem(c);
}
}
@@ -760,6 +758,6 @@ void Konsole::setColor()
Config cfg("Konsole");
cfg.setGroup("Colors");
- int scheme = cfg.readNumEntry("Schema",1);
- if(scheme != 1) colorMenuSelected( -scheme);
+ int scheme = cfg.readNumEntry("Schema",1);
+ if(scheme != 1) colorMenuSelected( -scheme);
}