forked from qt-creator/qt-creator
cmake: add history to arguments line edit
Change-Id: I0061124880ba21a408ac1f3221fdbc38d961a66d Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user