forked from qt-creator/qt-creator
Android: Deduplicate string literals and use constants instead
Improves findability of identical string in code (via code model). Reduces risk of typos. Change-Id: I0e9d9af8eed5cd9b66bf303cfee99c53513bf314 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
@@ -232,7 +232,8 @@ void ChooseDirectoryPage::initializePage()
|
||||
connect(m_androidPackageSourceDir, &PathChooser::rawPathChanged,
|
||||
this, &ChooseDirectoryPage::checkPackageSourceDir);
|
||||
} else {
|
||||
m_label->setText(tr("The Android template files will be created in the ANDROID_PACKAGE_SOURCE_DIR set in the .pro file."));
|
||||
m_label->setText(tr("The Android template files will be created in the %1 set in the .pro "
|
||||
"file.").arg(QLatin1String(Constants::ANDROID_PACKAGE_SOURCE_DIR)));
|
||||
m_androidPackageSourceDir->setPath(androidPackageDir);
|
||||
m_androidPackageSourceDir->setReadOnly(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user