forked from qt-creator/qt-creator
Utils: Remove FilePath::isWritablePath() uses
And fix remaining users. Change-Id: I41c27908f2e9f1e253d0b51830ba351b29a84ec5 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -94,7 +94,6 @@ public:
|
|||||||
bool needsDevice() const;
|
bool needsDevice() const;
|
||||||
bool exists() const;
|
bool exists() const;
|
||||||
|
|
||||||
bool isWritablePath() const { return isWritableDir(); } // Remove.
|
|
||||||
bool isWritableDir() const;
|
bool isWritableDir() const;
|
||||||
bool isWritableFile() const;
|
bool isWritableFile() const;
|
||||||
bool ensureWritableDir() const;
|
bool ensureWritableDir() const;
|
||||||
|
@@ -919,7 +919,7 @@ bool AndroidConfig::allEssentialsInstalled(AndroidSdkManager *sdkManager)
|
|||||||
bool AndroidConfig::sdkToolsOk() const
|
bool AndroidConfig::sdkToolsOk() const
|
||||||
{
|
{
|
||||||
bool exists = sdkLocation().exists();
|
bool exists = sdkLocation().exists();
|
||||||
bool writable = sdkLocation().isWritablePath();
|
bool writable = sdkLocation().isWritableDir();
|
||||||
bool sdkToolsExist = !sdkToolsVersion().isNull();
|
bool sdkToolsExist = !sdkToolsVersion().isNull();
|
||||||
return exists && writable && sdkToolsExist;
|
return exists && writable && sdkToolsExist;
|
||||||
}
|
}
|
||||||
|
@@ -612,7 +612,7 @@ void AndroidSettingsWidget::validateSdk()
|
|||||||
m_androidConfig.setSdkLocation(sdkPath);
|
m_androidConfig.setSdkLocation(sdkPath);
|
||||||
|
|
||||||
m_androidSummary->setPointValid(SdkPathExistsRow, m_androidConfig.sdkLocation().exists());
|
m_androidSummary->setPointValid(SdkPathExistsRow, m_androidConfig.sdkLocation().exists());
|
||||||
m_androidSummary->setPointValid(SdkPathWritableRow, m_androidConfig.sdkLocation().isWritablePath());
|
m_androidSummary->setPointValid(SdkPathWritableRow, m_androidConfig.sdkLocation().isWritableDir());
|
||||||
m_androidSummary->setPointValid(SdkToolsInstalledRow,
|
m_androidSummary->setPointValid(SdkToolsInstalledRow,
|
||||||
!m_androidConfig.sdkToolsVersion().isNull());
|
!m_androidConfig.sdkToolsVersion().isNull());
|
||||||
m_androidSummary->setPointValid(PlatformToolsInstalledRow,
|
m_androidSummary->setPointValid(PlatformToolsInstalledRow,
|
||||||
|
@@ -830,7 +830,7 @@ static bool canLinkWithQt(QString *toolTip)
|
|||||||
&installSettingsExist);
|
&installSettingsExist);
|
||||||
QStringList tip;
|
QStringList tip;
|
||||||
tip << linkingPurposeText();
|
tip << linkingPurposeText();
|
||||||
if (!Core::ICore::resourcePath().isWritablePath()) {
|
if (!Core::ICore::resourcePath().isWritableDir()) {
|
||||||
canLink = false;
|
canLink = false;
|
||||||
tip << QtOptionsPageWidget::tr("%1's resource directory is not writable.")
|
tip << QtOptionsPageWidget::tr("%1's resource directory is not writable.")
|
||||||
.arg(Core::Constants::IDE_DISPLAY_NAME);
|
.arg(Core::Constants::IDE_DISPLAY_NAME);
|
||||||
|
Reference in New Issue
Block a user