Commit Graph

89589 Commits

Author SHA1 Message Date
Marco Bubke
d309163c94 QmlDesigner: Remove workaround code for PropertyName
Since we now use PropertyNameView, we can remove this workaround.

Change-Id: Id7c46857ee60579f8b27e8e4cbc4d189dc928bd0
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-07-26 13:35:57 +00:00
hjk
fa0bfa8660 Lua: Dissolve LuaEngine class
It was mostly used as namespace.

Change-Id: Ice6cdd1581d7dd70b09f6d82891b874a206a1ca0
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-26 13:25:14 +00:00
Marcus Tillmanns
e429a11fd7 ExtensionBrowser: Warn on error
Change-Id: Ie7ceb888593563cd8d50c60d052a855417045b26
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2024-07-26 13:21:42 +00:00
Alessandro Portale
134e291b61 Utils: Fix struct vs. class declaration of RunResult
Change-Id: I111a997d4883041d4c70868e1c63baa5cde9e884
Reviewed-by: hjk <hjk@qt.io>
2024-07-26 13:15:37 +00:00
hjk
8af2f68493 Core: Allow plain widgets in IOptionPage::setWidgetCreator()
They were internally stored as QWidget anyway and only used as
IOptionsPageWidget after qobject_cast, with a sane default
implementation if they are not.

Change-Id: I98c73fb1221ba6f05e52d9f79ccd0f4c2fc7fa69
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-26 13:04:39 +00:00
hjk
0ace1802a1 Core: Make the global printer a function-static object
QPrinter does not do anything strange in the destructor,
so the change in lifetime is harmless.

Change-Id: Iaa255c8809e977dc480b3e23810f3c11b99fad28
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-26 13:04:31 +00:00
hjk
aaa9e0d8b9 Core: Use setup* pattern for ShortcutSettings, SystemEditor
... and ExternalTools.

Change-Id: Ib39cb477693f6ba6903dd6475ffd1d80cf70828f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-26 13:04:18 +00:00
Marcus Tillmanns
e4e4ef2629 Fix warnings
Change-Id: I142453a6707c252ab9c311573c329d24d85cf2ab
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2024-07-26 12:56:52 +00:00
Jarek Kobus
1c15ca95a7 Android: Get rid of unused arg from runAdb()
Change-Id: Ie80fd26b0b148c744d5ff0083fddad402405fb38
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-26 12:56:23 +00:00
hjk
a6908fa2d6 Core: Rename MimeTypeSettings to MimeTypeSettingsPage
More similar to the other classes.

Change-Id: Idb23cb5e43560132600158c5ba4d71e83a6a92ba
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-26 12:49:13 +00:00
hjk
4c8398f7ef Core: Remove unusual life time handling for MimeSettings
Change-Id: Ibbd1e12a1203ded7b63bdef39be1477911de50d9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-26 12:49:04 +00:00
hjk
4535677c89 Core: De-pimpl MimeTypeSettings
It's now all in the .cpp.

Also, make all the global statics members of MimeSettings, which is
a singleton anyway, and de-indirect the models which have identical
lifetime.

Change-Id: I0e9b485804e569b95526d1610821cd9c12dd1322
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-26 12:48:12 +00:00
hjk
e69ad77d3b Lua: Code cosmetics
The initialization/setup/... methods are typically called 'setupX...'
nowadays.

Change-Id: Iecdca160a54f60fbeb3dbffcc6d7aca20bc68682
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-26 11:58:50 +00:00
hjk
640a30fb76 Coding style: Mention "final" and endorse it
Change-Id: I6d420b95a31628d39a0be594e66a6b785664ff86
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-26 11:37:20 +00:00
hjk
f49523029a Remove #include <utils/fileutils.h> from most header files
It has some platform specific warts, filepath.h is somewhat
cheaper and less ugly overall.

Partially clean up surroundings

Change-Id: Ida1fd470ec020f69c446109427f92a08e879789f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-26 10:41:16 +00:00
Shrief Gabr
87466e4900 QmlDesigner: Fix Content Library messages for QtQuick3D import
Fixes: QDS-12897
Change-Id: Ia972238b556557e948c9eddb6c2dc6a5b69767fd
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-07-26 09:27:50 +00:00
Ali Kianian
dda294f16e QmlDesigner: Remove PrincipledMaterialEx from basic material types
Change-Id: I290b1c3fb8ce12b6d0319d2ce2dee6cb71fd0a57
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-07-26 08:51:36 +00:00
hjk
09a999302c Core: Remove unused MimeTypeSettingsPrivate::m_filterPattern
Change-Id: I55fcb9e66c2234cd5179ccb973fe4e57f6eb2de9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-26 08:22:56 +00:00
hjk
0ee5786e43 Core: Move some widget related things to MimeTypeSettingsWidget
From MimeTypeSettingsPrivate.

Change-Id: I293ead85cfaf3950daed975c9301b4296eda7dbc
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-26 08:22:27 +00:00
hjk
bd06023f9f Utils: Remove Id::uniqueIdentifier()
Not needed since qHash is made a hidden friend.

Change-Id: I4dc4b302f6708aa98fd4733a13a2efa3297e426b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-26 08:03:27 +00:00
hjk
87280f25ce Utils: Use more views in Id setup
Since this means that StringBuilder expressions are not usable
as arguments anymore, use .withSuffix() more extensively.

This makes this "unusual" construction also a bit better findable.

No measurable performance gain or loss in either direction.

Change-Id: I04508e77764455bd9d3a21eda63bc6de01508e4b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-26 08:00:00 +00:00
Jarek Kobus
f64440e4b8 QmlDesigner: Fix warning about deprecated operator+
Use operator| instead.

Change-Id: Iee76ec3429f33b07c060de8d98451edd9c97a701
Reviewed-by: hjk <hjk@qt.io>
2024-07-26 07:34:02 +00:00
Jarek Kobus
bbed189656 QmlPreview: Get rid of permanent thread
Use TaskTree with AsyncTask instead, on demand.

Change-Id: I227858eceef822c4106165c561f8ede56dfb78ca
Reviewed-by: hjk <hjk@qt.io>
2024-07-26 07:33:52 +00:00
Jarek Kobus
912dee875a UpdateInfoPlugin: Simplify recipe
Use conditional expression with nullItem.

Change-Id: I834741e20c977a3e64967753b4b5753a6d280567
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-26 07:27:03 +00:00
Eike Ziller
5ba1ef9dbb Meson/ToolWrapper: Fix missing initialization of m_isValid
Amends a4a92a04a1

Change-Id: Idab3141317729a6c2cf2ce0eaa1aa8c09ef1a1d7
Coverity-Id: 1598577
Reviewed-by: hjk <hjk@qt.io>
2024-07-26 06:59:52 +00:00
Eike Ziller
e2fcad5700 Bump version to 14.0.1
Change-Id: Id996ff1f27407b010f410a04bfb8fd5262deca2d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-26 06:54:10 +00:00
Lukasz Papierkowski
f37d07cbf4 Lua: Add Timer to the Utils bindings
Change-Id: I7702bae1770f668ffb2f937a357a0156b7db84b4
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-26 06:41:12 +00:00
Lukasz Papierkowski
1ed31ef52b AI Assistant: Add automatic suggestions
Change-Id: I5d3297a96a215ed07dfb9d2afa85c9bb081c5cf2
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-26 06:40:42 +00:00
Leena Miettinen
138c8ddd82 Doc: Link from SDK tool commands in the summary to their docs
Change-Id: I19e50073b0c837a0fe0b35b91b68b726b95c4b06
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-26 06:25:10 +00:00
Jarek Kobus
8d429afecf Meson: Use new setup schema for MesonProject
Change-Id: If5d60fe9e6d1afe16585c345ddc026af69560d1d
Reviewed-by: hjk <hjk@qt.io>
2024-07-25 15:50:36 +00:00
Jarek Kobus
d0621a7d54 Meson: Dismantle classes in favor of static methods
Change-Id: Ifefd2847feb57c613a4089ed9d12b0d07d91d30c
Reviewed-by: hjk <hjk@qt.io>
2024-07-25 15:30:34 +00:00
Jarek Kobus
3188c8785b Meson: Hide BuildOptionsParser and most of MesonInfoParser
Change-Id: I5006bbb0db5c8a26783cbf1a8942b48c7b939d59
Reviewed-by: hjk <hjk@qt.io>
2024-07-25 14:32:42 +00:00
Andre Hartmann
b4946da9ea VCS: Improve submit message check
Do not show the "commit message is short" text while
the user is still typing the first words.

Therefore, make the initial timeout larger and restart
the timer whenever the submit message changes.

After the minimal subject length or a newline is entered,
switch to faster evaluation.

Change-Id: I41034ed2c8e71e81dae42685bc9ff310edca2543
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2024-07-25 14:01:27 +00:00
Jarek Kobus
f0a24c8093 Meson: Remove unused MesonFileNode
Change-Id: If4abb94c6b69871aa137cdca7f7a80fe50cc9d19
Reviewed-by: hjk <hjk@qt.io>
2024-07-25 13:43:24 +00:00
hjk
bb7feab97b Meson: Inline one of the findTool() into its only user
Change-Id: I6cadbc4a7c70fe8fc7590c12a638dd472df3f327
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-25 13:38:15 +00:00
hjk
96b508c84a Meson: Merge two ToolWrapper constructors
Change-Id: I4a9fcc211e2718ff26f4e03c71ed89095db099ec
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-25 13:10:10 +00:00
hjk
c4fbd6a3f7 Meson: Dissolve WITH_UNCONFIGURED_PROJECT macro
Only used once.

Change-Id: I74213ca13c694a53316c69ebc241608a876e2e8f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-25 13:10:02 +00:00
hjk
3fe426e053 Meson: Remove some explicit use of QFileInfo
Change-Id: I5fa65b29516f80afdc2b00934ed39e63ae5a3a24
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-07-25 13:09:50 +00:00
Marcus Tillmanns
8e037b6019 Fix deprecation warning
Change-Id: I18d3f9b576d6c840587339fb6e3c62283a2f761f
Reviewed-by: hjk <hjk@qt.io>
2024-07-25 12:50:42 +00:00
Eike Ziller
3f47819893 Translations: Add an english file for short-term spelling fixes
If there is just a spelling error in the source text that can be fixed
without changing the text's semantics, we can do that after string
freeze without interfering with the work of translators that might
already have run lupdate and started translating, by adding an english
translation file.

This should never be used to fix the meaning of the string in any way,
and should be dissolved into the tr() calls (+ fixing source tags in
translations) before the next string freeze.

Change-Id: If72505b0ca22c35ef41c0cfabed669a800315f20
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-07-25 12:49:16 +00:00
Marcus Tillmanns
b9ac8bb3ba Fix warnings
Change-Id: I7b98e8b27c1f17f93e71eec8baa12b8b985529eb
Reviewed-by: hjk <hjk@qt.io>
2024-07-25 12:46:56 +00:00
Jarek Kobus
943efa0535 Meson: Inline ArrayOptionLineEdit
Change-Id: I28da4e5edd6a74274c17ad6b5fe91d161c574388
Reviewed-by: hjk <hjk@qt.io>
2024-07-25 11:45:19 +00:00
Alessandro Portale
4f31d77e6e Core: Remove deprecation warning
Use the QFontMetricsF constructor instead.
(Which I hope this change does as requested by the warning)

Change-Id: I89992715f5cc0a2e1b5e98498c2cc36bb705b187
Reviewed-by: hjk <hjk@qt.io>
2024-07-25 11:41:16 +00:00
Cristian Adam
a8cbd17733 CMakePM: Implement "FOLDER" property for targets
See the CMake documentation https://cmake.org/cmake/help/latest/
prop_tgt/FOLDER.html

This allows placement of targets in the project view in specific folders
like e.g. "tests"

Qt Creator (ab)uses the FOLDER property for the "qtc_runnable" feature,
see https://doc.qt.io/qtcreator/creator-run-settings.html
which would not allow to have both.

The "qtc_runnable" should be fixed by having a property "QTC_RUNNABLE"
for a target and have Qt Creator parse the code.

Fixes: QTCREATORBUG-28873
Change-Id: I73433de78b9a86f631ee9d7903db535b69b734f6
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-25 11:37:14 +00:00
Jarek Kobus
b4b2dd12fe Meson: Inline projecttree filepair
Change-Id: I62ba5ef90083f9bc342b4900bbc9ba57390d5e3f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-07-25 11:30:37 +00:00
The Qt Project
ad69cbc6bb Merge "Merge remote-tracking branch 'origin/14.0'" 2024-07-25 10:57:26 +00:00
Eike Ziller
3bbfd66bad Merge remote-tracking branch 'origin/14.0'
Conflicts:
	src/plugins/android/androidmanager.cpp
	src/plugins/android/androidrunner.cpp
	src/plugins/android/androidrunner.h
	src/plugins/qmldesigner/components/texteditor/texteditorview.cpp
	src/plugins/qmldesigner/components/texteditor/texteditorview.h
	src/plugins/qmldesigner/designmodecontext.cpp
	src/plugins/qmldesigner/designmodecontext.h
	src/plugins/qmljseditor/qmljseditingsettingspage.cpp

Change-Id: Idada49bb7441e8c5b748bd75b2e6bb2351bd323e
2024-07-25 12:56:53 +02:00
Jarek Kobus
847012000f Meson: Squash remaining namespaces
Change-Id: I44b8ba867f01dfd917a0d1c53c9487865b781d2a
Reviewed-by: hjk <hjk@qt.io>
2024-07-25 10:51:42 +00:00
Jarek Kobus
24dab04a33 Meson: Reuse ProcessRunData instead of self-made Command struct
Change-Id: Ie4a989976e3684b0931d5cdb49fbc06b76ebcb67
Reviewed-by: hjk <hjk@qt.io>
2024-07-25 10:51:30 +00:00
Jarek Kobus
0984b7b0c8 Meson: Hide versionNumber() in cpp and make it static
Change-Id: I0132de7b6a7df7dd5d6ae4f1ddef52d5af33729a
Reviewed-by: hjk <hjk@qt.io>
2024-07-25 10:51:23 +00:00