forked from qt-creator/qt-creator
FakeVim: Show command output in new editor instead of dialog
Task-number: QTCREATORBUG-11598 Change-Id: Ifff5a7ffbece93d21a0e688f4f3085d87d9373da Reviewed-by: Lukas Holecek <hluk@email.cz> Reviewed-by: Eike Ziller <eike.ziller@digia.com> Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -98,7 +98,6 @@
|
||||
|
||||
#include <QDesktopServices>
|
||||
#include <QItemDelegate>
|
||||
#include <QMessageBox>
|
||||
#include <QPlainTextEdit>
|
||||
#include <QShortcut>
|
||||
#include <QTextBlock>
|
||||
@@ -2119,9 +2118,12 @@ void FakeVimPluginPrivate::showCommandBuffer(const QString &contents,
|
||||
|
||||
void FakeVimPluginPrivate::showExtraInformation(const QString &text)
|
||||
{
|
||||
FakeVimHandler *handler = qobject_cast<FakeVimHandler *>(sender());
|
||||
if (handler)
|
||||
QMessageBox::information(handler->widget(), tr("FakeVim Information"), text);
|
||||
EditorManager::splitSideBySide();
|
||||
QString title = _("stdout.txt");
|
||||
IEditor *iedit = EditorManager::openEditorWithContents(Id(), &title, text.toUtf8());
|
||||
EditorManager::activateEditor(iedit);
|
||||
FakeVimHandler *handler = m_editorToHandler.value(iedit, 0);
|
||||
handler->handleCommand(_("0"));
|
||||
}
|
||||
|
||||
void FakeVimPluginPrivate::changeSelection(const QList<QTextEdit::ExtraSelection> &selection)
|
||||
|
||||
Reference in New Issue
Block a user