Commit 73d5f55d authored by hjk's avatar hjk

cmake: add history to arguments line edit

Change-Id: I0061124880ba21a408ac1f3221fdbc38d961a66d
Reviewed-by: default avatarDaniel Teske <daniel.teske@nokia.com>
parent 74f24ca0
...@@ -31,7 +31,9 @@ ...@@ -31,7 +31,9 @@
#include "cmakeopenprojectwizard.h" #include "cmakeopenprojectwizard.h"
#include "cmakeprojectmanager.h" #include "cmakeprojectmanager.h"
#include <coreplugin/icore.h>
#include <utils/pathchooser.h> #include <utils/pathchooser.h>
#include <utils/historycompleter.h>
#include <projectexplorer/profileinformation.h> #include <projectexplorer/profileinformation.h>
#include <projectexplorer/profilemanager.h> #include <projectexplorer/profilemanager.h>
#include <projectexplorer/toolchain.h> #include <projectexplorer/toolchain.h>
...@@ -44,6 +46,7 @@ ...@@ -44,6 +46,7 @@
#include <QPushButton> #include <QPushButton>
#include <QPlainTextEdit> #include <QPlainTextEdit>
#include <QDateTime> #include <QDateTime>
#include <QSettings>
#include <QStringList> #include <QStringList>
using namespace CMakeProjectManager; using namespace CMakeProjectManager;
...@@ -293,6 +296,10 @@ void CMakeRunPage::initWidgets() ...@@ -293,6 +296,10 @@ void CMakeRunPage::initWidgets()
// Run CMake Line (with arguments) // Run CMake Line (with arguments)
m_argumentsLineEdit = new QLineEdit(this); 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())); connect(m_argumentsLineEdit,SIGNAL(returnPressed()), this, SLOT(runCMake()));
fl->addRow(tr("Arguments:"), m_argumentsLineEdit); fl->addRow(tr("Arguments:"), m_argumentsLineEdit);
......
Markdown is supported
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