Commit Graph

88653 Commits

Author SHA1 Message Date
David Schulz
f94ff4e524 ProjectExplorer: Remove now unused interpreter aspect
Change-Id: I1715ba1cadb1662dd9d598ff9f7ffd2126325683
Reviewed-by: hjk <hjk@qt.io>
2024-02-01 13:58:44 +00:00
hjk
bc15dcd8fe TextEditor: Move access to smaller settings chunks
Change-Id: Id827edbd19dde54b66cb4349d9c832bc23110adc
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-01 13:50:53 +00:00
hjk
2a29acdbaf Python: Use setup function for build related factories
Change-Id: I3b1faad8a5f3ead1332941d31509c3efd3806f78
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-01 13:49:58 +00:00
Thomas Hartmann
6a910131c6 QmlDesigner: Support Qt 6.6 in wizards
Change-Id: Ie7baf06b9a8e7962bcd805df2ed9bf5c1066bdee
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-02-01 13:40:52 +00:00
hjk
e784b1e58b TextEditor: Start moving settings pieces to standard patterns
Aspects would be nice in the long run.

Change-Id: I6f44fdef6c3eedf6a480d550bdf2c7f4dc1c0c27
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-01 13:37:46 +00:00
Jarek Kobus
5cf639341e QrcParser: Replace QSharedPointer with std::shared_ptr
According to https://wiki.qt.io/Things_To_Look_Out_For_In_Reviews
QSharedPointer impl is poor and it's going to be removed from Qt 7.

Change-Id: I557804bf781b7fa58129242bd94e1566ed3ee304
Reviewed-by: hjk <hjk@qt.io>
2024-02-01 13:25:00 +00:00
hjk
62aa35ee39 ProjectExplorer: Remove OutputFormatterFactory hierarchy
It never gained traction, was only used in thee places, and
the class(-hierarchy) is not really needed and only complicates
the code when the formatter creation is handled in free functions.

Also adapt the users.

Change-Id: Ieef7199f5a36f244b2f38cffef71a5fe0606065c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-01 13:23:35 +00:00
David Schulz
8499240544 Python: Remove now unused interpreter aspect
Change-Id: I107ca665cf2fa2b707dba46917ce45f240d15654
Reviewed-by: hjk <hjk@qt.io>
2024-02-01 13:18:29 +00:00
Miikka Heikkinen
2a7c82c7ea EffectComposer: Make spinboxes HelperWidgets.DoubleSpinBoxes
This way we get proper press-and-drag behavior for them.

Fixes: QDS-11750
Change-Id: I039d72933b533e83ebebf0da36e5c0db81908689
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2024-02-01 12:51:44 +00:00
Artem Sokolovskii
5051a77c8b ClangFormat: Make Language Client dependency conditional
Amends e1f7469afb

Change-Id: Iea7dc6210ac7e1bf39e570cf58e6a5a1abd5cdb6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-02-01 12:13:50 +00:00
Mahmoud Badri
bcb231b37c EffectComposer: Don't reset view when switching files
Fixes: QDS-11713
Change-Id: Ic38d2fdf5105a5ecd623b8624fa028f6a45fe207
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-02-01 12:00:53 +00:00
Christian Stenger
4dc3fb05a7 Core: Explicitly provide image for minisplitter cursors
On Linux we fail to get the system cursor for resizing splitters
on several platforms which makes it hard to grab them to move
their position.
Provide a setting which enables the user to use some cursors
explicitly provided by QC instead.

Task-number: QTBUG-119875
Fixes: QTCREATORBUG-29980
Change-Id: I02f031883ddd5cfd33075868ae6766ff78ee6882
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2024-02-01 11:17:50 +00:00
Christian Stenger
293297269f Tests: Provide example tasks file
Change-Id: I529102dba9cd259de25d69a527e3ac2a0e1a9380
Reviewed-by: hjk <hjk@qt.io>
2024-02-01 11:17:42 +00:00
Christian Stenger
218878150d Utils: Fix build before Qt6.4
Change-Id: I140aaa32950118f96b92a8644e76f4d5180e46f1
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2024-02-01 11:17:21 +00:00
Leena Miettinen
cc03aff960 Doc: Split up the "Working in Edit Mode topic"
- Make topics shorter and easier to browse
- Move information around
- Delete duplicate how-to topics
- Add \sa links to how-to topics

Task-number: QTCREATORBUG-29361
Change-Id: Ie84a29993129d175bbd65143fcfc45aa8304d621
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-01 10:28:25 +00:00
Jarek Kobus
1eae66d558 EffectComposer: Fix a warning about unused arg
Amends 2122ff37f1

Change-Id: I71cd0227a6ad47b863de9546d6df59b3c67b31f0
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-01 10:02:28 +00:00
hjk
982eb0fbb6 ProjectExplorer: Use a setup function for the JsonWizardPageFactories
Change-Id: I98080e88bf5cc21861b2cdf85e93fe33d4858f4b
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-01 09:46:52 +00:00
Jarek Kobus
0890ad05b2 Spinner: Add SpinnerWidget
Move it from spinner example and make it a reusable widget.

Change-Id: I3d74ec491f5d1cb7d012551f624cff2c618952ca
Reviewed-by: hjk <hjk@qt.io>
2024-02-01 09:29:58 +00:00
Jarek Kobus
096a5aca0d TaskTree: Fix internal naming
Make it more consistent.

Change-Id: I00ced6c742be9e884b328f51e75db552f8c22115
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-02-01 09:29:48 +00:00
Jarek Kobus
f3b7d17aa3 TaskTree: Hide internal function in private section
Change-Id: I1f0a964f9bf6ab3e5207420d69fefc5ca3480553
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2024-02-01 09:29:38 +00:00
Shrief Gabr
6a4df2b6e6 QmlDesigner: Fix unresponsive RealSpinBox buttons in Number cells
Task-number: QDS-11755
Change-Id: I53a7422642202acbea043800bd91e913b7bd0779
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-02-01 09:17:45 +00:00
hjk
7997d92f0c Core: Add MenuBuilder::setIcon()
... and use it for the cmake formatter menu.

Change-Id: I19fa1c1446ce893ef1c87389848869c6cbfc678a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-01 09:02:47 +00:00
Miikka Heikkinen
347c6b1121 QmlDesigner: Add extended 3D project template
Extended 3D template use ExtendedSceneEnvironment instead of regular
SceneEnvironment to enable various built-in effects.

Fixes: QDS-11812
Change-Id: If84807f5a4dd327d6da4f08669b66ed3d7a1ff14
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-02-01 09:02:01 +00:00
hjk
56f9493445 CompilationDatabase: Use ActionBuilder
Change-Id: I0469a25370592f62391d79fa1b8cc0f34ea362e7
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-01 08:23:01 +00:00
hjk
8976d78b8d CompilationDatabasePM: Use setup function for plugin items
Change-Id: Idd1a6dc1af49fc1e713524677b80ed2010b8f17d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-01 08:22:55 +00:00
hjk
d723c74858 Beautifier: Use MenuBuilder
... and simplify ActionBuilder use.

Change-Id: I95ae851a978e7c1fce62510bba29ed2ba447a89a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-01 08:22:17 +00:00
Jarek Kobus
a19d19733e Axivion: Remove a delay when typing in search field
Don't call cancel() for the task tree runner - the next
call to start() will reset it anyway, what will be faster.

Change-Id: Ib0aae67ab6ec9bc3835931e0b20b0e4cb381cf35
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-01 07:59:35 +00:00
hjk
3f0649f07c Use setAttribute(Qt::WA_DeleteOnClose) on context menus everywhere
Helps thinking about menu and parent lifetime.

Change-Id: I120a16b4ebbd92187c5e8e78bd7da4ee9f2b115d
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-02-01 07:54:49 +00:00
Marcus Tillmanns
a4fbc5f00d CppEditor: Don't needlessly store default values
Task-number: QTCREATORBUG-24762
Change-Id: I171a7c6bd8f7f62cb4871b3d6c1828ff7edd53ab
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-01 07:50:43 +00:00
Christian Stenger
1d7f6451bb AutoTest: Parse for file paths in Qt test output
Add option to explicitly check for pattern file://path
and file://path:line which can be provided by the
test code to improve the location information of
qDebug() and friends.

Task-number: QTCREATORBUG-30143
Change-Id: I050ab544c0173769995f7c5e97c89b497ded9215
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-01 07:40:15 +00:00
Christian Stenger
16123997b8 Haskell: Fix missing include
..when building with Qt6.2.

Change-Id: I224feb4ee8d658ffa2702c0a111c5390c0a80f1a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-01 07:38:23 +00:00
Christian Stenger
41103666c5 Axivion: Mark current selected issue kind
Change-Id: I2bb49a5fed6f71f3a0e2dfc1207a6d6f592e59c2
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-01 07:24:30 +00:00
Jarek Kobus
d7bae47f8a LanguageClient: Simplify openedDocument map
Replace custom OpenedDocument struct with custom deleter
of std::unique_ptr.

Change-Id: Ia7606fcad5337685aecae7c9dec064a5df4666fe
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-01 07:15:13 +00:00
Marcus Tillmanns
92996b74ae Python: Don't needlessly store default value
Task-number: QTCREATORBUG-24762
Change-Id: I3ca495b2696747d5323cc7eea4aac4d99e3adfd1
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-01 07:15:07 +00:00
Jarek Kobus
fffb69d078 LanguageClient: Avoid possible deletions on map growing
Replace the QMap with std::unordered_map.
Keep a std::unique_ptr to OpenedDocument as a hash value.
For clarity, declare Q_DISABLE_COPY_MOVE for OpenedDocument.

Change-Id: I46a0b486ea6bc1fd3d4014739a350ae587038dc8
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-01 07:15:04 +00:00
Marcus Tillmanns
4aab6a9173 LanguageClient: Don't needlessly store empty values
Task-number: QTCREATORBUG-24762
Change-Id: Ifdff1e3cd23ce287b0c7a17064587e995616d42f
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2024-02-01 07:14:57 +00:00
Marcus Tillmanns
20904b2411 Debugger: Dont show invalid hit count
The CDB Engine cannot report the hit count.
Instead of showing "0", we don't show the hit count
at all.

Task-number: QTCREATORBUG-20069
Change-Id: Ie8b5478ba85c7255b13070cb488599a2b2ca4537
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-02-01 07:14:43 +00:00
Christian Stenger
6d22196dd1 Axivion: Correctly reset dashboard
..to avoid displaying old data when switching projects
or "unlinking" in general.

Change-Id: I35f6995f2b010402d78ac3f9d1ca3760138423c0
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-01 07:09:19 +00:00
Christian Stenger
e77e89dede Axivion: Raise default limit for search
Minor clean ups.

Change-Id: I685f067e1830c41c958645de624c4e4dd360ac4b
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-01 07:08:29 +00:00
Christian Stenger
a5e6efd4f7 Axivion: Add state filter handling
Contrary to the web dashboard selecting a filter means explicitly
enabling this instead of disabling.
May change later with other UI improvements.

Change-Id: I83b32464a6d9bdab03dce78587962960900af08b
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-01 07:08:18 +00:00
Christian Stenger
1ea5f6fa92 Axivion: Handle path globbing for issues search
Change-Id: I92ad022cbea5f2460cc9ddcea1c05e0c87f83610
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-01 07:08:09 +00:00
Christian Stenger
5702374b72 Axivion: Handle owner parameter for issues
Beside this extracted recurring pattern into helper
function.

Change-Id: I48c34cac80bcc43ac7b0c6f7250bf8a8943869a9
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-01 07:07:41 +00:00
Christian Stenger
0b0941cbcb Axivion: Only update basic project info when needed
Extract functionality and guard against clearing and repopulating
if not necessary.

Change-Id: Ic4e5e87a3aa76f3b29d38e42b2b6be2ad64dcf1f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2024-02-01 07:07:31 +00:00
hjk
55e0036c0e Core: Remove Menu
... and replace the only use by MenuBuilder.

Change-Id: Iaf224bee4a07de6ed733b4c89f01c42d4103fcb7
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-01 06:59:27 +00:00
hjk
17055f2e18 Core: Add a MenuBuilder
Use it in the AutoTest as example.

Change-Id: I357faba71f685ea05206a7e1ca93069a88787823
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-01 06:59:09 +00:00
hjk
6e7b83bb4a CppCheck: Use ActionBuilder
Change-Id: I385427232891826641760f463da26de3777387b6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-02-01 06:57:41 +00:00
David Schulz
aefd80094a Python: add requirements file to python project wizard
This is the de facto standard way of defining project dependencies. And
those files can be used to install dependencies via pip.

Change-Id: Ibfe37624b66d757cd331aee9c51090200b3bad39
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-02-01 05:44:46 +00:00
Alessandro Portale
7d659b446d Utils: Introduce StyleHelper::uiFontLineHeight
The "Text tokens" which are defined in Figma have an additional line
height value.

This change adds a getter function for the line heights.

Change-Id: I9513ac2f689292baf6e2c0a52fca8a1ec7f14dc1
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-01-31 20:06:14 +00:00
Alessandro Portale
03db2fd6c5 Utils: Add two fonts to StyleHelper::UIElement
Change-Id: I0b4ff271ef9fe91eb369c916ad886c7d39c2e060
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-01-31 20:06:05 +00:00
Alessandro Portale
4d56f9b840 Utils: Improve metrics handling in StyleHelper::uiFont
Figma designs have font sizes defined in pixels. We want to
define font sizes in points.

This change introduces the original font pixel size values from Figma
and provides the conversion to sensible point sizes.

Change-Id: Ic8356942a9bc033d2b5cd62863d2bd0a4cc6973b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2024-01-31 20:05:52 +00:00