forked from qt-creator/qt-creator
Utils: Replace FileChooser::path() by filePath().toString()
Keep the old method for now to ease downstream porting. The change is kept mechanical, there's a lot of cleanup possible now on the user code side. Change-Id: I936baedd45b7ba057f1c789a1bec896886f48eff Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -227,15 +227,15 @@ void GenericLinuxDeviceConfigurationWizardKeyDeploymentPage::initializePage()
|
||||
|
||||
bool GenericLinuxDeviceConfigurationWizardKeyDeploymentPage::isComplete() const
|
||||
{
|
||||
return d->keyFileChooser.path().isEmpty() || d->keyFileChooser.filePath().exists();
|
||||
return d->keyFileChooser.filePath().toString().isEmpty() || d->keyFileChooser.filePath().exists();
|
||||
}
|
||||
|
||||
bool GenericLinuxDeviceConfigurationWizardKeyDeploymentPage::validatePage()
|
||||
{
|
||||
if (!d->defaultKeys().contains(d->keyFileChooser.path())) {
|
||||
if (!d->defaultKeys().contains(d->keyFileChooser.filePath().toString())) {
|
||||
SshConnectionParameters sshParams = d->device->sshParameters();
|
||||
sshParams.authenticationType = SshConnectionParameters::AuthenticationTypeSpecificKey;
|
||||
sshParams.privateKeyFile = d->keyFileChooser.path();
|
||||
sshParams.privateKeyFile = d->keyFileChooser.filePath().toString();
|
||||
d->device->setSshParameters(sshParams);
|
||||
}
|
||||
return true;
|
||||
@@ -243,7 +243,7 @@ bool GenericLinuxDeviceConfigurationWizardKeyDeploymentPage::validatePage()
|
||||
|
||||
QString GenericLinuxDeviceConfigurationWizardKeyDeploymentPage::privateKeyFilePath() const
|
||||
{
|
||||
return d->keyFileChooser.path();
|
||||
return d->keyFileChooser.filePath().toString();
|
||||
}
|
||||
|
||||
void GenericLinuxDeviceConfigurationWizardKeyDeploymentPage::createKey()
|
||||
|
||||
Reference in New Issue
Block a user