aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorhjk <[email protected]>2012-08-21 19:35:41 +0200
committerhjk <[email protected]>2012-08-22 12:34:11 +0200
commit73d5f55de541c3e15cfd37c75491e3c962fbf110 (patch)
tree0ae254b5cb77939b18a94abfd5a062e262b15a8e /src/plugins
parent74f24ca0fb213ba83ac4ad9d6410cfb3bc43191a (diff)
cmake: add history to arguments line edit
Change-Id: I0061124880ba21a408ac1f3221fdbc38d961a66d Reviewed-by: Daniel Teske <[email protected]>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/cmakeprojectmanager/cmakeopenprojectwizard.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakeopenprojectwizard.cpp b/src/plugins/cmakeprojectmanager/cmakeopenprojectwizard.cpp
index d8b352c905d..d1267772f1d 100644
--- a/src/plugins/cmakeprojectmanager/cmakeopenprojectwizard.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakeopenprojectwizard.cpp
@@ -31,7 +31,9 @@
#include "cmakeopenprojectwizard.h"
#include "cmakeprojectmanager.h"
+#include <coreplugin/icore.h>
#include <utils/pathchooser.h>
+#include <utils/historycompleter.h>
#include <projectexplorer/profileinformation.h>
#include <projectexplorer/profilemanager.h>
#include <projectexplorer/toolchain.h>
@@ -44,6 +46,7 @@
#include <QPushButton>
#include <QPlainTextEdit>
#include <QDateTime>
+#include <QSettings>
#include <QStringList>
using namespace CMakeProjectManager;
@@ -293,6 +296,10 @@ void CMakeRunPage::initWidgets()
// Run CMake Line (with arguments)
m_argumentsLineEdit = new QLineEdit(this);
+ m_argumentsLineEdit->setObjectName(QLatin1String("CMakeArgumentsLineEdit"));
+ m_argumentsLineEdit->setCompleter(
+ new Utils::HistoryCompleter(Core::ICore::settings(), m_argumentsLineEdit));
+
connect(m_argumentsLineEdit,SIGNAL(returnPressed()), this, SLOT(runCMake()));
fl->addRow(tr("Arguments:"), m_argumentsLineEdit);