diff options
author | Eike Ziller <eike.ziller@qt.io> | 2023-06-22 14:59:24 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2023-06-26 06:58:36 +0000 |
commit | 6836caa14c247829bfd4edf47d31c87310d56211 (patch) | |
tree | b8df66df0be9750c33ffc8938ff96be0e960ab8e /src/app | |
parent | dff9e1463bfebe803af0c696222b6eeb04857c26 (diff) |
Do not compile PROJECT_USER_FILE_EXTENSION into plugins
Set it in the app info in the main application and read it from there.
Moves more branding information out of the plugins.
Change-Id: I2f2e9fc96900793be15ac1907df70dda31c1b9c1
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/app_version.h.cmakein | 3 | ||||
-rw-r--r-- | src/app/app_version_header.qbs | 2 | ||||
-rw-r--r-- | src/app/main.cpp | 1 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/app/app_version.h.cmakein b/src/app/app_version.h.cmakein index 5b9098f056..6c1fb9bb29 100644 --- a/src/app/app_version.h.cmakein +++ b/src/app/app_version.h.cmakein @@ -28,5 +28,8 @@ const char IDE_REVISION_URL[] = "${IDE_REVISION_URL}"; // changes the path where the settings are saved to const char IDE_SETTINGSVARIANT_STR[] = "${IDE_SETTINGSVARIANT}"; +// added extension for project user settings +const char IDE_PROJECT_USER_FILE_EXTENSION[] = "${PROJECT_USER_FILE_EXTENSION}"; + } // Constants } // Core diff --git a/src/app/app_version_header.qbs b/src/app/app_version_header.qbs index 59cd014df7..110ec34540 100644 --- a/src/app/app_version_header.qbs +++ b/src/app/app_version_header.qbs @@ -57,6 +57,8 @@ Product { product.moduleProperty("qtc", "ide_id")); content = content.replace("$${IDE_CASED_ID}", product.moduleProperty("qtc", "ide_cased_id")); + content = content.replace("$${PROJECT_USER_FILE_EXTENSION}", + product.moduleProperty("qtc", "ide_user_file_extension")); file = new TextFile(output.filePath, TextFile.WriteOnly); file.truncate(); file.write(content); diff --git a/src/app/main.cpp b/src/app/main.cpp index c488a2d9be..b2c10208a6 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -662,6 +662,7 @@ int main(int argc, char **argv) info.id = Constants::IDE_ID; info.revision = Constants::IDE_REVISION_STR; info.revisionUrl = Constants::IDE_REVISION_URL; + info.userFileExtension = Constants::IDE_PROJECT_USER_FILE_EXTENSION; Utils::Internal::setAppInfo(info); QTranslator translator; |