forked from qt-creator/qt-creator
fakevim: Show current command in minibuffer (showcmd option)
Use showcmd Vim option to show current partial command. Removed unneeded updateMiniBuffer() calls. Change-Id: Iddacd364b7c92882b6169a6894c89cdb202a32bf Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -139,7 +139,7 @@ public:
|
||||
|
||||
setCurrentWidget(m_edit);
|
||||
m_edit->setFocus();
|
||||
} else if (contents.isEmpty()) {
|
||||
} else if (contents.isEmpty() && messageLevel != MessageShowCmd) {
|
||||
hide();
|
||||
} else {
|
||||
show();
|
||||
@@ -152,6 +152,9 @@ public:
|
||||
} else if (messageLevel == MessageWarning) {
|
||||
css = QString("border:1px solid rgba(255,255,255,120);"
|
||||
"background-color:rgba(255,255,0,20);");
|
||||
} else if (messageLevel == MessageShowCmd) {
|
||||
css = QString("border:1px solid rgba(255,255,255,120);"
|
||||
"background-color:rgba(100,255,100,30);");
|
||||
}
|
||||
m_label->setStyleSheet(QString(
|
||||
"*{border-radius:2px;padding-left:4px;padding-right:4px;%1}").arg(css));
|
||||
@@ -298,6 +301,9 @@ QWidget *FakeVimOptionPage::createPage(QWidget *parent)
|
||||
m_group.insert(theFakeVimSetting(ConfigWrapScan),
|
||||
m_ui.checkBoxWrapScan);
|
||||
|
||||
m_group.insert(theFakeVimSetting(ConfigShowCmd),
|
||||
m_ui.checkBoxShowCmd);
|
||||
|
||||
connect(m_ui.pushButtonCopyTextEditorSettings, SIGNAL(clicked()),
|
||||
SLOT(copyTextEditorSettings()));
|
||||
connect(m_ui.pushButtonSetQtStyle, SIGNAL(clicked()),
|
||||
|
||||
Reference in New Issue
Block a user