summaryrefslogtreecommitdiff
path: root/src/plugins/qmlprojectmanager/qmlmultilanguageaspect.cpp
Commit message (Collapse)AuthorAgeFilesLines
* ProjectExplorer: Move some not-fully-session related bitshjk2023-03-011-2/+2
| | | | | | | | | | | | | | | ... out of SessionManager. The idea is to later move SessionManager into the Core plugin, which both is sensible conceptually and also prerequisite to merge the Bookmark plugin into TextEditor plugin. Currently, only the interface is split, as the load/save implemetations are non-mechanical to disentangle. Change-Id: I31631db3094ea192825a2ccaa6add6188662940b Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* QmlProjectManager: Tr::trAlessandro Portale2023-01-191-2/+4
| | | | | Change-Id: I219111bab487ad5f2d7d1cd7ae6f3e3e8a2a8d3f Reviewed-by: hjk <hjk@qt.io>
* Remove GPL-3.0+ from license identifiersKai Köhne2023-01-061-1/+1
| | | | | | | | | | | | | | | Since we also license under GPL-3.0 WITH Qt-GPL-exception-1.0, this applies only to a hypothetical newer version of GPL, that doesn't exist yet. If such a version emerges, we can still decide to relicense... While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only Change was done by running find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR GPL-3.0 WITH Qt-GPL-exception-1.0/LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0/g" {} \; Change-Id: I5097e6ce8d10233993ee30d7e25120e2659eb10b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Qt Quick Designer: Fix references to changed view names in UI textLeena Miettinen2022-10-241-1/+1
| | | | | | | | | | | - Form Editor > 2D - 3D Editor > 3D - Text Editor > Code Task-number: QTCREATORBUG-28334 Change-Id: I65f693b47b1c361dae3c270333ff036e4c473b9e Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Use SPDX license identifiersLucie Gérard2022-08-261-24/+2
| | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* QmlProjectManager: Fix compiler warningEike Ziller2022-05-111-1/+1
| | | | | | | Remove unused lambda capture Change-Id: I4b17b8330f8ed4f5463f36689366d314e0159046 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlProjectManager: Avoid use of RunControl::runConfiguration()hjk2022-04-121-0/+11
| | | | | | | | | The RunConfiguration might change and even die after the runcontrol starts. Change-Id: I628f3ae26c21fb41388b6104497ce5a6a6704c8a Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* QML Designer: Fix UI textLeena Miettinen2022-02-171-2/+1
| | | | | | | | | Fix capitalization of strings and the wording of tooltips. Task-number: QTCREATORBUG-27055 Change-Id: Id8e324b44574b9cf0d1522ae204b452cea6193cd Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
* Multilanguage: Add multilanguageSupport option to qmlprojectTuomo Pelkonen2022-01-201-2/+3
| | | | | | | Change-Id: I1fc1861e17dc62cec91f5fa27f7e01360a42de78 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlProject: Add support for primaryLanguageTuomo Pelkonen2021-10-141-2/+1
| | | | | | | Task-number: QDS-5187 Change-Id: I05aafa726fd6c2b586d57b64239cf08c1f2342ab Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* QmlDesigner: Bump database versionMarco Bubke2021-03-221-1/+1
| | | | | Change-Id: I1342d85161e3d83de5411bd1a9ee97809b1ccfd7 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Bump multi language database versionMarco Bubke2021-03-111-1/+1
| | | | | Change-Id: Icd9b379c4dfbc09a8f949c86e0354d28f6184bc7 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* QmlProjectManager: Bump up version of the multilanguage databaseMarco Bubke2021-03-091-1/+1
| | | | | | Change-Id: I123171475f6d37241fdbe37c94725df718f5fe9f Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* QmlDesigner: Bump up database versionMarco Bubke2021-01-271-1/+1
| | | | | | | We change the database schema. Change-Id: I2715f47995374fe3d17ba97af9287af198c28959 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Don't use iterators to temporary containersJarek Kobus2020-11-201-7/+6
| | | | | | | | | | | | | Fix a clazy warning, like: Don't call QVector::begin() on temporary [clazy-temporary-iterator] Indeed, we may pass begin and end iterators for 2 different instances of temporary vector (shared though). In addition: use const iterators. Change-Id: Iac1055d9fc226f1b48ca72ee4f3aab433addfe7f Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Merge remote-tracking branch 'origin/4.13' into 4.14Eike Ziller2020-10-191-1/+1
|\ | | | | | | Change-Id: If549dd1bc610704ece881c408cf44192dabed8b9
| * qmlpreview: fix calling right localeIsoCode methodTim Jenssen2020-10-141-1/+1
| | | | | | | | | | | | | | | | | | | | Also add some QTC_CHECK to get at least some warning in case the functions are renamed in future. Change-Id: Ie4e78855152e9946950603c95fa881755e850c62 Reviewed-by: Marco Bubke <marco.bubke@qt.io> (cherry picked from commit 165ccb828d5f741c91ebdc0bf6e50bd980497640) Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Merge remote-tracking branch 'origin/4.13' into masterEike Ziller2020-08-211-0/+3
|\ \ | |/ | | | | | | | | | | Conflicts: CMakeLists.txt Change-Id: I799060da2cb299bb0c49a3da3530fad18427a23c
| * QmlProject: Fix crashThomas Hartmann2020-08-201-0/+3
| | | | | | | | | | | | Change-Id: I6b83b6c05b1c94f62c868329ea118d638d9928b6 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | ProjectExplorer: Rename Base*Aspect to *Aspecthjk2020-08-141-3/+3
|/ | | | | | | | | In most cases they are used directly, so there's not much Base* in that. Added the old name as alias as porting help for a while. Change-Id: I494a8a560b8996bcf74915ea3570b504df6a6b4c Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* qmlproject: rename lastUsedLanguage -> currentLocaleTim Jenssen2020-07-231-13/+10
| | | | | | | | | | | | | removed the connection from plugin to QmlMultiLanguageAspect::setCurrentLocale but calling it directly in QmlPreviewPlugin::setLocale Does not matter which method is called it will change the right thing only once because it is checking if it already have the set locale. Change-Id: I6cb4b115788adc103481dcda45e3214a0cd73401 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* qmlproject: add convenience method to QmlMultiLanguageAspectTim Jenssen2020-07-211-0/+24
| | | | | Change-Id: I88799aa1c5caa5c967b7c680ef9ddcbdd4b01bf5 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* qmlpreview: stop previews if the language backend is changedTim Jenssen2020-07-211-1/+0
| | | | | Change-Id: Iadf0712ea429f3bdb8c4109dfb558466fa2743f2 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* qmlproject: remove unnecessary separatorTim Jenssen2020-07-201-1/+1
| | | | | | | results in two separators which looks wrong Change-Id: Ie715e1b504303a9ab819ede08b1e69095c5d870d Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* QmlDesigner: Bump up database version to 2Marco Bubke2020-07-171-1/+2
| | | | | Change-Id: I4b4c4c46c3bd17d2b4f4f80b8fb97f5716261f77 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* qml: introduce QmlMultiLanguageAspectTim Jenssen2020-06-181-0/+128
This aspect is only available if the special multilanguage plugin is available. Translation changes in that plugin changes this aspect, which results in environment variables which activate the use of a multilanguage created sqlite to provide the translations. Change-Id: I38250b69165eb7ec3e4f82dc34b3cc4ba0a33f8f Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>