aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/modelinglib
Commit message (Collapse)AuthorAgeFilesLines
* ModelEditor: More use of Utils::FilePathJochen Becher6 days16-57/+91
| | | | | Change-Id: Ib1030959ae5eea763d3b93684b68ae6ae927839b Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* ModelEditor: Use Utils::FilePathJochen Becher13 days16-84/+109
| | | | | | | | | More replacements of QString with Utils::FilePath and removal of QFileInfo and QDir will follow. Change-Id: Iceec1c009c562bd9a05f9ab1d1a9f83ad48a4467 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* ModelEditor: Inline addrelatedelementsdialog.uiAlessandro Portale2024-05-025-218/+69
| | | | | | | | Change-Id: I53f9ec87030c4ac41ff34f61a54dd10a866b8c33 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Jochen Becher <jochen_becher@gmx.de>
* ModelEditor: Inline modeltreefilter.uiAlessandro Portale2024-05-025-348/+102
| | | | | | | Change-Id: I03925b708ac1741f6342023b455b0280a8bce584 Reviewed-by: Jochen Becher <jochen_becher@gmx.de> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* ModelEditor: Improve panningJochen Becher2024-04-222-1/+45
| | | | | | Change-Id: Iacb3e2bb9006d306852f18b50bbec322abb5acdf Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* ModelEditor: Improve selection and layout of elementsAlessandro Portale2024-04-1813-49/+124
| | | | | | Change-Id: I199e2c4402519479cb098ae2c6665cd7f0ea12a1 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Merge remote-tracking branch 'origin/13.0'Eike Ziller2024-04-171-1/+3
|\ | | | | | | Change-Id: I0892d8e54930bb5a65dc51117b8ca7d70ce300a3
| * ModelEditor: Fix crash when selecting an elementDavid Faure2024-04-151-1/+3
| | | | | | | | | | | | | | | | | | Same fix as in commit 22f41fb751cd5b1b136e0c7fa15d8e3163bc912e but in a different method. Fixes: QTCREATORBUG-30413 Change-Id: I69790707005edc26c7d3e943d86db132184298e9 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* | ModelEditor: Add model tree filterJochen Becher2024-04-1711-0/+850
| | | | | | | | | | | | | | | | | | A new button in the top bar opens a filter for the model tree which allows quick search for model elements Change-Id: Ibfe229890cb79e64fdbbe62f74681add102b5ccf Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | ModelEditor: Fix linked files supportJochen Becher2024-04-171-0/+6
| | | | | | | | | | | | | | | | Adding missed integration of one change for linked files. Change-Id: Ie3c98ef8ab013c67fe8d1b12ae9ac5d7f4556161 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | ModelEditor: Add dialog for adding related elementsJochen Becher2024-04-168-10/+678
| | | | | | | | | | | | Change-Id: Iae832885278472bb42a588fc97967ae5ffad6b71 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | ModelEditor: Support linked files and custom imagesJochen Becher2024-04-1629-343/+552
| | | | | | | | | | | | Change-Id: I1a5f8b19a4890e0bcbd5a2cf70fdee2cadf62a98 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | Add more visual attributes for relationsJochen Becher2024-04-1030-82/+725
|/ | | | | | Change-Id: I56af6a367c144e22c8113f69a2938080ddb2e750 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* ModelEditor: Fix crash when selecting itemsMarcus Tillmanns2024-03-071-1/+3
| | | | | | Fixes: QTCREATORBUG-30413 Change-Id: Ie637e20d6308da2e1afcf3ff710f29c6a1695d58 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ModelingLib: Avoid using keys()Jarek Kobus2024-01-111-6/+4
| | | | | | | | | | | Instead, iterate directly over the container. Notably, sorting the result of keys() didn't play any significant role in this contexts. Change-Id: Iba82f3d503143ff0036509d0bf08c87747aeb40c Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* ModelingLib: Hide areStackingRoles() in cppJarek Kobus2024-01-112-33/+28
| | | | | | | | Make it static. Change-Id: I05786425ade0d942b0e83349dc959a5dce72813e Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Clean up some lambdashjk2023-12-123-5/+4
| | | | | Change-Id: Id947c0935b1aa4579e1c64d3e510db41103fbe27 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Random warning cleanuphjk2023-12-081-9/+7
| | | | | | | Clang16 in C++20 mode. Change-Id: I87801e362a3ba6e38cfebd319a7aee2ed4e45568 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Various Plugins: Simplify return QList statementsJarek Kobus2023-08-022-2/+2
| | | | | | | Change-Id: I36633128e061d0544e4752a65804b460371283f7 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Remove a few unnecessary Q_OBJECThjk2023-07-1411-34/+16
| | | | | | Change-Id: I4c84f264045797c70ec3022e3705f63341a1e7d9 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Translations: Change translation context prefix from "::" to "QtC::"Alessandro Portale2023-02-101-1/+1
| | | | | | | lupdate would be confused by translation contexts starting with :: Change-Id: Ie95e73436fd3cafc80a8e89f908efadc747e644c Reviewed-by: hjk <hjk@qt.io>
* ModelingLib: Tr::tr()Alessandro Portale2023-02-1016-166/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Following orphaned contexts are merged into ::qmt qmt::ClassItem qmt::DiagramController qmt::DiagramSceneController qmt::DocumentController qmt::Exception qmt::FileCreationException qmt::FileNotFoundException qmt::FileReadError qmt::FileWriteError qmt::IllegalXmlFile qmt::ModelController qmt::ModelTreeView qmt::NullPointerException qmt::ObjectItem qmt::ProjectController qmt::PropertiesView::MView qmt::TreeModel qmt::UnknownFileVersion qmt::V Change-Id: Iaf98c2bfc654452d44f6bed155be6ddfe7556b19 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Translations: Prefix translation contexts for libraries with "::"Alessandro Portale2023-01-261-1/+1
| | | | | Change-Id: I0631ad6fdc9f341a162d879e54ff09fbdb74398e Reviewed-by: hjk <hjk@qt.io>
* Replace GPL-3.0 with GPL-3.0-onlyKai Köhne2023-01-10312-312/+312
| | | | | | | | | | | | | GPL-3.0 is deprecated by SPDX. Change done by find . -type f -exec perl -pi -e 's/LicenseRef-Qt-Commercial OR GPL-3.0(?!-)/LicenseRef-Qt-Commercial OR GPL-3.0-only/g' {} \; Change-Id: If316a498e3f27d2030b86d4e7743b3237ce09939 Reviewed-by: Lucie Gerard <lucie.gerard@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@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>
* CMake build: Use version-less Qt targetsEike Ziller2023-01-051-1/+1
| | | | | | | | | Since we do not support Qt < 5.15 anymore, and as a first step for getting rid of our special FindQt5.cmake. Change-Id: Icc5dbaf9b0a3a622b1f609ff114b9decb6d2856c Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* modelinglib: Remove foreach usage part 2Artem Sokolovskii2023-01-0317-78/+94
| | | | | Change-Id: Ia898cc019a0534a97d20a3dc48e69c6617773766 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* modelinglib: Remove foreach usage part 1Artem Sokolovskii2022-12-2217-43/+49
| | | | | | | Change-Id: Ib185d0dbe7df2e5452502278d9a2c3151cf9812e Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* Use M_PI for 3.14Jarek Kobus2022-11-252-2/+2
| | | | | | | Change-Id: I19078a791afa1c74cd34e59b033525e029755d7e Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* ModelingLib: Replace foreach with range-based for loopsJarek Kobus2022-11-249-101/+124
| | | | | | Change-Id: I3e51c9477b6995ec06b119fb4518a53aa1d71ec9 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Utils: Add sorted() functionChristian Kandeler2022-10-251-2/+1
| | | | | | | | | For simpler calling code. Change-Id: Ia0a16a28770fd172f74d06a626148248bf5d3c0c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Port from qAsConst() to std::as_const()Marc Mutz2022-10-072-6/+6
| | | | | | | | | | | | | | We've been requiring C++17 since Qt 6.0, and our qAsConst use finally starts to bother us (QTBUG-99313), so time to port away from it now. Since qAsConst has exactly the same semantics as std::as_const (down to rvalue treatment, constexpr'ness and noexcept'ness), there's really nothing more to it than a global search-and-replace. Task-number: QTBUG-99313 Change-Id: I88edd91395849574436299b8badda21bb93bea39 Reviewed-by: hjk <hjk@qt.io>
* ModelingLib: Limit the usage of qMakePairJarek Kobus2022-09-306-149/+147
| | | | | Change-Id: Ic89f2a9598faadbda964f71dbe84bfd5400aec4f Reviewed-by: hjk <hjk@qt.io>
* Remove outdated version checksRobert Löhning2022-09-121-4/+0
| | | | | | Change-Id: I972a7fe0842a0310ba5df1233a4f417627dad87c Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Libs: Fix Qbs buildChristian Stenger2022-09-011-1/+7
| | | | | | | Amends a621aa1d8bcc. Change-Id: If5276e5558bf8139286c2084400eac915253c7f7 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Libs: Add *tr.h filehjk2022-09-013-0/+17
| | | | | Change-Id: I827d3bc1fd24cf2e3fb6dbe9d255f12cc91cd409 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Use SPDX license identifiersLucie Gérard2022-08-26312-7488/+624
| | | | | | | | | 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>
* Drop Qt5: ModelingLib: Get rid of QOverloadJarek Kobus2022-07-201-7/+7
| | | | | | Change-Id: If7b6c4daf3c092eb844eb279049cac2f510dbc47 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Utils: More porting.h related changeshjk2022-07-142-3/+0
| | | | | Change-Id: I528a6950dfa6e09eb7f7ada265c8c41dba816bfd Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Utils: Collapse most of porting,hhjk2022-07-133-7/+7
| | | | | | | | | Taking the Qt 6 branches, leaving some dummies until downstream adapted. Change-Id: Ib9b86568d73c341c8f740ba497c3cbfab830d8a1 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Modeling: Fix crash while reset modelChristian Stenger2022-06-141-3/+5
| | | | | | | Fixes: QTCREATORBUG-27226 Change-Id: I1333379a99ff5ebd08b121f2f014c6971a192699 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: hjk <hjk@qt.io>
* Static Build: make sure the .qrc files have unique namesCristian Adam2022-05-063-2/+2
| | | | | | | | | resources.qrc was present in multiple plugins and Q_INIT_RESOURCE requires an unique name to proper initialize the resource. Change-Id: I2d514ab4b8cc41655009996f28aadca9c454d818 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* CMake: Qt Creator Static build supportCristian Adam2022-04-292-1/+2
| | | | | | | | | | | | | | | | | | | This adds the build system feature that allows Qt Creator's libraries and plugins to be compiled statically. Fixes some symbol clashes when all plugins are linked into the same executable. Support for actually loading static plugins will be added in a separate commit. The feature is controlled by QTC_STATIC_BUILD which by default is OFF. Change-Id: I1fab7953c43e42dc75619e35660029ee067106df Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Remove qmake build filesEike Ziller2022-01-205-346/+0
| | | | | | | | | | Removes qmake as a build system for building Qt Creator itself. Keep them for some tests that are not completely moved to CMake yet. Change-Id: I846c6ef65626b6dfae6375fdc85d00677aa8c2fb Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Merge remote-tracking branch 'origin/6.0'Eike Ziller2022-01-067-20/+23
|\ | | | | | | Change-Id: I405e3f95b0cdcd7b2686f31baae16c03c787f007
| * ModelEditor: Fix build with Qt 5Eike Ziller2022-01-061-0/+3
| | | | | | | | | | | | | | | | | | Add missing Q_DECLARE_METATYPEs Amends 5a135ba44266dc34264f70fd53c95eb53be0af1d Change-Id: I12297243f0ed28405bd9f225d7c1dbf5a3511f0c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
| * Modeling: Fix queued connections for Qt 6Eike Ziller2022-01-046-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | The argument must be registered as a meta type for queued connections. This also depends on a consistent naming of the type in the signal arguments (which best is fully qualified). Fixes: QTCREATORBUG-26760 Task-number: QTCREATORBUG-24098 Change-Id: I83991326f051d592a1665ae8cdb472d8376e74bc Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* | Make some qHash and comparison operators overloads hidden friendshjk2021-12-065-69/+53
|/ | | | | | | Restricts lookup scope more to necessary bits. Change-Id: Ia42c95aaa70534843b7f6a90bfc56d2a1202c612 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Fix qHash-related size compatibility warnings by MSVCOrgad Shaneh2021-10-204-10/+13
| | | | | | Change-Id: I3b7981ce78b67db4b996f99682284a0b911d8cd7 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Avoid size_t to (u)int warnings with auto, where it is possibleTim Jenssen2021-07-073-5/+5
| | | | | Change-Id: I1ec7454ebce59d99bc828bfd5086907eb0905632 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>