Commit 34d18262 authored by hluk's avatar hluk Committed by hjk
Browse files

FakeVim: Show command output in new editor instead of dialog



Task-number: QTCREATORBUG-11598
Change-Id: Ifff5a7ffbece93d21a0e688f4f3085d87d9373da
Reviewed-by: default avatarLukas Holecek <hluk@email.cz>
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent c996d801
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment