Add facility to translate a key binding entry's result back to a string and use it in the key binding editor.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=676126
This commit is contained in:
Robert Knight
2007-06-16 04:52:16 +00:00
parent 1f8e6395f2
commit 431ba05b1f
3 changed files with 24 additions and 3 deletions

View File

@@ -111,7 +111,7 @@ void KeyBindingEditor::setupKeyBindingTable(const KeyboardTranslator* translator
const KeyboardTranslator::Entry& entry = entries.at(row);
QTableWidgetItem* keyItem = new QTableWidgetItem(entry.conditionToString());
QTableWidgetItem* textItem = new QTableWidgetItem(QString(entry.text()));
QTableWidgetItem* textItem = new QTableWidgetItem(QString(entry.resultToString()));
_ui->keyBindingTable->setItem(row,0,keyItem);
_ui->keyBindingTable->setItem(row,1,textItem);