Let Command construct its description (former defaultText) itself.

Instead of doing it duplicated in the general and the fakevim shortcut
settings.

Change-Id: Id4b0e5b0630f1e94c825528f1c038776dc205aa3
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Eike Ziller
2012-01-06 17:13:18 +01:00
committed by hjk
parent de26dad959
commit f7ca05e4b9
10 changed files with 55 additions and 73 deletions

View File

@@ -408,16 +408,7 @@ void FakeVimExCommandsPage::initialize()
sections[section]->addChild(item);
item->setText(0, subId);
if (c->action()) {
QString text = c->hasAttribute(Command::CA_UpdateText)
&& !c->defaultText().isNull()
? c->defaultText() : c->action()->text();
text.remove(QRegExp("&(?!&)"));
item->setText(1, text);
} else {
item->setText(1, c->shortcut()->whatsThis());
}
item->setText(1, c->description());
QString regex;
if (exCommandMap().contains(name))