summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2011-11-04 17:59:05 +0100
committerEike Ziller <eike.ziller@nokia.com>2011-11-08 13:38:51 +0100
commited2458a89354c6b64f11b9cd7f1d543d5f167d21 (patch)
tree162d6d0a2d6b15e28b8d9e9328f42542170b3c38 /src
parent4a976e6b48fb4443613d1d26376da29e9efb84fa (diff)
downloadqt-creator-ed2458a89354c6b64f11b9cd7f1d543d5f167d21.tar.gz
debugger: save history of log input pane
Task-number: QTCREATORBUG-6474 Change-Id: Ie57f7a6d8f2dce9f09f2b2f5140071289d9c4518 Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/debugger/logwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/debugger/logwindow.cpp b/src/plugins/debugger/logwindow.cpp
index 8a8a569a66..cf4741f549 100644
--- a/src/plugins/debugger/logwindow.cpp
+++ b/src/plugins/debugger/logwindow.cpp
@@ -58,6 +58,7 @@
#include <utils/savedaction.h>
#include <utils/fileutils.h>
+#include <utils/historycompleter.h>
namespace Debugger {
namespace Internal {
@@ -361,6 +362,8 @@ LogWindow::LogWindow(QWidget *parent)
m_commandLabel = new QLabel(tr("Command:"), this);
m_commandEdit = new QLineEdit(this);
m_commandEdit->setFrame(false);
+ m_commandEdit->setObjectName("DebuggerInput");
+ m_commandEdit->setCompleter(new Utils::HistoryCompleter(m_commandEdit));
QHBoxLayout *commandBox = new QHBoxLayout;
commandBox->addWidget(m_commandLabel);
commandBox->addWidget(m_commandEdit);