Commit a4b186cc authored by Christian Kandeler's avatar Christian Kandeler
Browse files

RemoteLinux: Introduce default name to device wizard page.

Also use better default config names for generic Linux and Madde.

Change-Id: I6755d9060b9bb9e2901363a42e6cd593238d4110
Reviewed-on: http://codereview.qt-project.org/5686


Reviewed-by: default avatarChristian Kandeler <christian.kandeler@nokia.com>
parent deaec493
......@@ -118,7 +118,7 @@ public:
connect(buttonGroup, SIGNAL(buttonClicked(int)),
SLOT(handleDeviceTypeChanged()));
m_ui->nameLineEdit->setText(QLatin1String("(New Configuration)"));
m_ui->nameLineEdit->setText(QLatin1String("MeeGo Device"));
m_ui->osTypeComboBox->setCurrentIndex(m_ui->osTypeComboBox->findData(QLatin1String(HarmattanOsType)));
m_ui->hwButton->setChecked(true);
handleDeviceTypeChanged();
......
......@@ -73,7 +73,7 @@ GenericLinuxDeviceConfigurationWizardSetupPage::~GenericLinuxDeviceConfiguration
void GenericLinuxDeviceConfigurationWizardSetupPage::initializePage()
{
d->ui.nameLineEdit->setText(QLatin1String("(New Configuration)"));
d->ui.nameLineEdit->setText(defaultConfigurationName());
d->ui.hostNameLineEdit->setText(defaultHostName());
d->ui.userNameLineEdit->setText(defaultUserName());
d->ui.passwordButton->setChecked(true);
......@@ -121,6 +121,11 @@ QString GenericLinuxDeviceConfigurationWizardSetupPage::privateKeyFilePath() con
return d->ui.privateKeyPathChooser->path();
}
QString GenericLinuxDeviceConfigurationWizardSetupPage::defaultConfigurationName() const
{
return QLatin1String("Generic Linux Device");
}
QString GenericLinuxDeviceConfigurationWizardSetupPage::defaultHostName() const
{
return QString();
......
......@@ -61,6 +61,7 @@ public:
QString password() const;
QString privateKeyFilePath() const;
virtual QString defaultConfigurationName() const;
virtual QString defaultHostName() const;
virtual QString defaultUserName() const;
virtual QString defaultPassWord() const;
......
Supports Markdown
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