forked from qt-creator/qt-creator
Utils: Rename PathChooser::{f,setF}ileName() to {f,setF}ilePath()
It's returning a FilePath, so it's a better fit. Keep the old versions as inline function now to ease downstream migration. Change-Id: I535887928018f42b92895c8b0c82527f0d55e5ca Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
@@ -196,7 +196,7 @@ GenericLinuxDeviceConfigurationWizardKeyDeploymentPage::GenericLinuxDeviceConfig
|
||||
deployLayout->addStretch();
|
||||
mainLayout->addLayout(deployLayout);
|
||||
connect(&d->keyFileChooser, &PathChooser::pathChanged, this, [this, deployButton] {
|
||||
deployButton->setEnabled(d->keyFileChooser.fileName().exists());
|
||||
deployButton->setEnabled(d->keyFileChooser.filePath().exists());
|
||||
d->iconLabel.clear();
|
||||
emit completeChanged();
|
||||
});
|
||||
@@ -227,7 +227,7 @@ void GenericLinuxDeviceConfigurationWizardKeyDeploymentPage::initializePage()
|
||||
|
||||
bool GenericLinuxDeviceConfigurationWizardKeyDeploymentPage::isComplete() const
|
||||
{
|
||||
return d->keyFileChooser.path().isEmpty() || d->keyFileChooser.fileName().exists();
|
||||
return d->keyFileChooser.path().isEmpty() || d->keyFileChooser.filePath().exists();
|
||||
}
|
||||
|
||||
bool GenericLinuxDeviceConfigurationWizardKeyDeploymentPage::validatePage()
|
||||
|
||||
Reference in New Issue
Block a user