From 34d1826263c07438a44b1b3cabe4a8a491102ee2 Mon Sep 17 00:00:00 2001 From: hluk Date: Thu, 6 Mar 2014 19:04:42 +0100 Subject: [PATCH] FakeVim: Show command output in new editor instead of dialog Task-number: QTCREATORBUG-11598 Change-Id: Ifff5a7ffbece93d21a0e688f4f3085d87d9373da Reviewed-by: Lukas Holecek Reviewed-by: Eike Ziller Reviewed-by: hjk --- src/plugins/fakevim/fakevimplugin.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/plugins/fakevim/fakevimplugin.cpp b/src/plugins/fakevim/fakevimplugin.cpp index c10e43ad36e..756121aeef2 100644 --- a/src/plugins/fakevim/fakevimplugin.cpp +++ b/src/plugins/fakevim/fakevimplugin.cpp @@ -98,7 +98,6 @@ #include #include -#include #include #include #include @@ -2119,9 +2118,12 @@ void FakeVimPluginPrivate::showCommandBuffer(const QString &contents, void FakeVimPluginPrivate::showExtraInformation(const QString &text) { - FakeVimHandler *handler = qobject_cast(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 &selection)