forked from qt-creator/qt-creator
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user