forked from qt-creator/qt-creator
Maemo: Add default value to device config wizard.
Task-number: QTCREATORBUG-3782
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user