Commit 1b3f8c57 authored by Christian Kandeler's avatar Christian Kandeler

Maemo: Add default value to device config wizard.

Task-number: QTCREATORBUG-3782
parent de44d038
......@@ -326,6 +326,11 @@ QString MaemoDeviceConfig::defaultPrivateKeyFilePath()
+ QLatin1String("/.ssh/id_rsa");
}
QString MaemoDeviceConfig::defaultPublicKeyFilePath()
{
return defaultPrivateKeyFilePath() + QLatin1String(".pub");
}
QString MaemoDeviceConfig::defaultUser(MaemoGlobal::MaemoVersion osVersion)
{
switch (osVersion) {
......
......@@ -87,6 +87,7 @@ public:
static QString portsRegExpr();
static QString defaultHost(DeviceType type);
static QString defaultPrivateKeyFilePath();
static QString defaultPublicKeyFilePath();
static QString defaultUser(MaemoGlobal::MaemoVersion osVersion);
static int defaultSshPort(DeviceType type);
static QString defaultQemuPassword(MaemoGlobal::MaemoVersion osVersion);
......
......@@ -225,8 +225,8 @@ public:
virtual void initializePage()
{
m_ui->dontReuseButton->setChecked(true);
m_ui->privateKeyFilePathChooser->setPath(QString());
m_ui->publicKeyFilePathChooser->setPath(QString());
m_ui->privateKeyFilePathChooser->setPath(MaemoDeviceConfig::defaultPrivateKeyFilePath());
m_ui->publicKeyFilePathChooser->setPath(MaemoDeviceConfig::defaultPublicKeyFilePath());
handleSelectionChanged();
}
......
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