Rename FancyLineEdit::setHistoryKey -> setHistoryCompleter

similar for HistoryCompleter *m_completer -> m_historyCompleter

Change-Id: Ic7aedc19cbb865f0a5bdddb9565a7411fd06dfde
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2012-08-24 13:05:09 +02:00
parent 96d8009693
commit 8d3c1cfb05
5 changed files with 27 additions and 29 deletions

View File

@@ -90,7 +90,7 @@ class StartApplicationDialogPrivate
public:
ProfileChooser *profileChooser;
PathChooser *localExecutablePathChooser;
QLineEdit *arguments;
FancyLineEdit *arguments;
PathChooser *workingDirectory;
QCheckBox *breakAtMainCheckBox;
QCheckBox *runInTerminalCheckBox;
@@ -213,16 +213,15 @@ StartApplicationDialog::StartApplicationDialog(QWidget *parent)
d->localExecutablePathChooser = new PathChooser(this);
d->localExecutablePathChooser->setExpectedKind(PathChooser::File);
d->localExecutablePathChooser->setPromptDialogTitle(tr("Select Executable"));
d->localExecutablePathChooser->lineEdit()->setHistoryKey(QLatin1String("LocalExecutable"));
d->localExecutablePathChooser->lineEdit()->setHistoryCompleter(QLatin1String("LocalExecutable"));
d->arguments = new QLineEdit(this);
d->arguments->setCompleter(
new HistoryCompleter(d->arguments, QLatin1String("CommandlineArguments")));
d->arguments = new FancyLineEdit(this);
d->arguments->setHistoryCompleter(QLatin1String("CommandlineArguments"));
d->workingDirectory = new PathChooser(this);
d->workingDirectory->setExpectedKind(PathChooser::ExistingDirectory);
d->workingDirectory->setPromptDialogTitle(tr("Select Working Directory"));
d->workingDirectory->lineEdit()->setHistoryKey(QLatin1String("WorkingDirectory"));
d->workingDirectory->lineEdit()->setHistoryCompleter(QLatin1String("WorkingDirectory"));
d->runInTerminalCheckBox = new QCheckBox(this);
@@ -654,11 +653,11 @@ bool AddressDialog::isValid() const
class StartRemoteEngineDialogPrivate
{
public:
QLineEdit *host;
QLineEdit *username;
FancyLineEdit *host;
FancyLineEdit *username;
QLineEdit *password;
QLineEdit *enginePath;
QLineEdit *inferiorPath;
FancyLineEdit *enginePath;
FancyLineEdit *inferiorPath;
QDialogButtonBox *buttonBox;
};
@@ -668,21 +667,20 @@ StartRemoteEngineDialog::StartRemoteEngineDialog(QWidget *parent)
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
setWindowTitle(tr("Start Remote Engine"));
d->host = new QLineEdit(this);
d->host->setText(QString());
d->host->setCompleter(new HistoryCompleter(d->host, QLatin1String("HostName")));
d->host = new FancyLineEdit(this);
d->host->setHistoryCompleter(QLatin1String("HostName"));
d->username = new QLineEdit(this);
d->username->setCompleter(new HistoryCompleter(d->username, QLatin1String("UserName")));
d->username = new FancyLineEdit(this);
d->username->setHistoryCompleter(QLatin1String("UserName"));
d->password = new QLineEdit(this);
d->password->setEchoMode(QLineEdit::Password);
d->enginePath = new QLineEdit(this);
d->enginePath->setCompleter(new HistoryCompleter(d->enginePath, QLatin1String("EnginePath")));
d->enginePath = new FancyLineEdit(this);
d->enginePath->setHistoryCompleter(QLatin1String("EnginePath"));
d->inferiorPath = new QLineEdit(this);
d->inferiorPath->setCompleter(new HistoryCompleter(d->inferiorPath, QLatin1String("InferiorPath")));
d->inferiorPath = new FancyLineEdit(this);
d->inferiorPath->setHistoryCompleter(QLatin1String("InferiorPath"));
d->buttonBox = new QDialogButtonBox(this);
d->buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);