Skip to content

Commit

Permalink
cmake: add history to arguments line edit
Browse files Browse the repository at this point in the history
Change-Id: I0061124880ba21a408ac1f3221fdbc38d961a66d
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
  • Loading branch information
hjk committed Aug 22, 2012
1 parent 74f24ca commit 73d5f55
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/plugins/cmakeprojectmanager/cmakeopenprojectwizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -44,6 +46,7 @@
#include <QPushButton>
#include <QPlainTextEdit>
#include <QDateTime>
#include <QSettings>
#include <QStringList>

using namespace CMakeProjectManager;
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 73d5f55

Please sign in to comment.