Commit Graph

72811 Commits

Author SHA1 Message Date
David Schulz
e86e5f76a8 ClangTools: properly initialize diagnostic mark without document
After removing the delegating constructor the code in the body of the
called constructor was not executed anymore. Move that code into a
separate function and call it from every constructor to make sure that
the text mark is properly initialized.

Amends d7ed05ae14.

Fixes: QTCREATORBUG-31153
Change-Id: Ic320d470d39a927c3f7027a0041e843cdea5aa9c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-02 11:41:20 +00:00
David Schulz
02e3de5bd9 Editor: remove unneeded friend declaration
Change-Id: I710bc165b019e06f0758062b8f32b434d40ce8e7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-02 10:50:19 +00:00
Thomas Hartmann
629aa5384f QmlProject: Fix type
Task-number: QDS-13161
Change-Id: I71cc3f0111c08a7dd036ddf21217a1b95f0efac8
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-07-02 10:30:58 +00:00
Miikka Heikkinen
a7fd510b98 QmlDesigner: Show transform gizmos on every split
For seamless UX, the transform gizmos need to be visible and responsive
on all splits without first activating the split.

Fixes: QDS-12383
Change-Id: I7760fc35c06083b2939f7dff48e79e52f273ba97
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-07-02 10:25:44 +00:00
Eike Ziller
a4a881eca1 Modes: Make selector style menu items real actions
Allow setting shortcuts etc, and generally unifies the code

Change-Id: I7102be3914209b19b61f06d1166f8d988e797696
Reviewed-by: hjk <hjk@qt.io>
2024-07-02 10:08:27 +00:00
Miikka Heikkinen
197e6a88f2 QmlDesigner: Fix import preview generation crashes
Asset name sanitizing logic is more complex on quick3d importer than
we have on designer side, which leads to asset name sometimes differing
from  actual generated qml file name. Since there's always a risk of
sanitizing logic changing, added qml name as separate data item from
asset name so that preview generation knows to always load correct qml.

Fixes: QDS-13168
Change-Id: I1705619a6b30ebbe8ca44a00cfdad1a5122ca964
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-07-02 08:34:53 +00:00
Miikka Heikkinen
3050a0db6b QmlDesigner: Avoid multiple simultaneous modal dialogs during import
Having multiple modal dialogs open can sometimes crash the designer.

Fixes: QDS-13142
Change-Id: I21a424f64f552c27b6b9e99009770d570feff84b
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-07-02 08:34:33 +00:00
Alessandro Portale
8b1c7d3865 QtSupport: Stabilize Example sets sorting
Design Studio examples entries come without version numbers. The
lessThan implementation was called twice with the same two QDS items.
To my understanding lessThan confused the algorithm by returning
contradicting results.

With this change only different QVersionNumbers are lessThan-ranked.

Change-Id: I24fed43457c1f53c3fea693b20bdf2fd4db44b7a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-02 07:00:52 +00:00
Jarek Kobus
f207707cc9 LinuxDeviceTester: Get rid of unused storage
The storage is now only set, never read -> thus remove it.

Amends 3cd0dad3d4

Change-Id: Icf95c03b923b07ed1a734fe522567d1851231960
Reviewed-by: hjk <hjk@qt.io>
2024-07-02 06:39:39 +00:00
hjk
e28e96eae0 ScxmlEditor: Inline scxmleditorstack.* into its only user
Also de-Q_OBJECT-ify and drop two unnecessary casts.

Change-Id: I8113fc52e96226c3bdd72b36a904775c2fa5f1e6
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-02 05:53:39 +00:00
hjk
bdcac43936 ExtensionManager: Make some text selectable by mouse
Change-Id: Ic268c80713c4fe7121af32eb0e0bc3ea41ed1660
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-07-02 05:52:34 +00:00
Christian Stenger
6d4e5a0002 Cppcheck: Treat manual run settings as project settings
Instead of always deriving from global settings store the
settings for the manual run into the project settings.

Fixes: QTCREATORBUG-31092
Change-Id: I7854cff4e71b58225c7e9c1198c4e60128ed07e4
Reviewed-by: hjk <hjk@qt.io>
2024-07-02 05:33:35 +00:00
Christian Stenger
6cb0c69c43 CplusPlus: Silence clang warning
Silences a warning regarding ISO C++20 considering the
overloaded operators as ambiguous.

Change-Id: Ie27a8567899a91ab064a58694105af260addb74b
Reviewed-by: hjk <hjk@qt.io>
2024-07-02 05:33:00 +00:00
Alessandro Portale
157d8f2ca2 Mode icons: Fill the beetle
This reduces the complexity of the beetle, which should make it better
recognizable in various pixel densities.

Change-Id: I1021e497366881847984e32e31c3523207f6498f
Reviewed-by: hjk <hjk@qt.io>
2024-07-01 16:57:27 +00:00
Tim Jenssen
5ced40c049 QmlDesigner: Qt 6.8 fixes
Task-number: QDS-13175
Change-Id: Ic7ac18974c7e3e08758eed0ca50376737d919196
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2024-07-01 15:01:14 +00:00
hjk
62ebdfd406 ExtensionManager: Make remote repo access optional
Off by default.

Change-Id: Ib27fa134f095be7c923cc4ce41ef4e2f6ec01ff0
Reviewed-by: hjk <hjk@qt.io>
2024-07-01 14:10:30 +00:00
Alessandro Portale
7fb28d6bdc Mode icons: Update Welcome, Edit, Project and Build icons
- New house/Welcome
- Pen/Design points to bottom left
- New wrench/project without circle
- New hammer/build with attached handle and rotated 45 degrees

Task-number: QTCREATORBUG-31080
Change-Id: I97499ead9e097d523c36d9b08a4b65240e3a5042
Reviewed-by: hjk <hjk@qt.io>
2024-07-01 14:08:21 +00:00
Marcus Tillmanns
ab493600ee Lua: Fix meta name
Change-Id: I81a70bc8a010a53e9a741e7dea0710e8b2525205
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-01 13:52:54 +00:00
David Schulz
2ef07ef02d LanguageClient: show number of children in call and type hierarchy
Change-Id: Ia4b0d651992d6a17b1adb73624eb8cec4de2f7e9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-01 12:51:20 +00:00
Christian Kandeler
f175ec933f ClangFormat: Fix build with current LLVM main branch
Change-Id: I27b3fb41091aeeeda0bdb4786d8f1793beb0376f
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2024-07-01 12:24:22 +00:00
Christian Kandeler
2a313f45c9 CppEditor: Fix mistakenly inverted condition
Introduced in f09a694cfc

Change-Id: I1983c9258ab3fc4f924580f759193d786bb24f2e
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-07-01 12:14:11 +00:00
Christian Stenger
315e08a684 Core: Fix painting custom delegate
Fixes: QTCREATORBUG-30775
Change-Id: I553f6e095353765756597fe2d6014fe7a2fa8046
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-01 12:10:34 +00:00
David Schulz
ccdc293697 Editor: remove TextDocumentManipulator
Change-Id: Iacd7cd40ace77c79eecca3e4e699eb308d0c27de
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-01 11:49:07 +00:00
David Schulz
9ad0a5a641 Editor: reduce complexity of TextDocumentManipulator
Move implementations either to the TextEditorWidget, TextDocument, or to
the caller side. This makes the TextDocumentManipulator basically a
repeater so we can easily replace it with a TextEditorWidget in the
next step.

Change-Id: I04de3cb295b56fbaae99145f8e579fe405b065a5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2024-07-01 11:49:02 +00:00
Christian Kandeler
f09a694cfc TextEditor: Move TextDocument::setIfdefedOutBlocks() to CppEditor
... where it belongs.

Change-Id: I4e7f344ed2d4af626965cf1f8a318de56a03a8bc
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-07-01 11:45:58 +00:00
Eike Ziller
476401aa0c JsonWizards: Fix wizards for Design Studio
Let Design Studio directly change the location where the pre-installed
wizards are located

- clearing wizard paths to set a new one is call order dependent and
  therefore fragile (as can be seen)
- it doesn't really make sense to prevent user templates

Also fix addWizardPath, even though it is then no longer used in our own
code.

Amends 3249b106e5

Change-Id: I404387aea1bc85aef5f229e6699bd9802b218e65
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-01 10:58:53 +00:00
David Schulz
c9b74decc2 TextEditor: fix unindent on backspace for mixed multi text cursors
Fixes: QTCREATORBUG-31158
Change-Id: I141e01f51531dffee10835c74370d2df11c3fcc7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-01 10:20:14 +00:00
David Schulz
3f318fe628 TextEditor: collect tab and typing settings only once
... and not for each cursor in a multi text cursor when handling the
backspace key.

Change-Id: I1e6b9409163306ee665f4519afe11cb87997c270
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-01 10:20:07 +00:00
Eike Ziller
0283b81392 Merge remote-tracking branch 'origin/14.0'
Conflicts:
	cmake/QtCreatorIDEBranding.cmake
	qbs/modules/qtc/qtc.qbs

Change-Id: If39fe80197537c489361810e91ee221c6c52ea01
2024-07-01 12:01:27 +02:00
Alessandro Portale
c954b75672 Mode Icons: Make "Play" triangle less squeezed
Play icons usually are equiangular, i.e. not squeezed. This unsqeezes
the new play triangle.

Task-number: QTCREATORBUG-31080
Change-Id: I7243253255a015e78bf87bce273c2381dd96ee1b
Reviewed-by: hjk <hjk@qt.io>
2024-07-01 06:48:04 +00:00
hjk
af4da1277d AutoTest: Some code cosmetics
Change-Id: I568194134bbd84f517f27a31a440f1061f91e971
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-01 06:25:37 +00:00
hjk
9671c426e4 QmlJsEditor: Code cosmetics in qmljseditordocument.cpp
Change-Id: I915fbabaefcc018f2fa5211f8d09da8136b446ce
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-01 06:24:47 +00:00
Eike Ziller
e867f9ef11 Welcome: Fix the order of Qt versions for examples
There are two sources for examples: Qt versions directly, and "example
sets", which are just a tuple of display name, documentation path,
examples path.

The Qt installer registers an "example set" for Qt versions, so to avoid
duplicate entries we match Qt versions to example sets, if found. This
destroys any order the Qt versions might have been in before.

Order the results by Qt version (and other sets last) by first creating
all the items regardless of origin (noting their Qt version in the user
data), and sorting them before adding to the model.

Also use constants for the different user data fields.

Fixes: QTCREATORBUG-31108
Change-Id: I827be892a3abe17fa6afcd3c6f39bf225f7af494
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-07-01 06:05:39 +00:00
Alessandro Portale
105be75c07 ExtensionManager: Fix host_os field for extension service request
The used QSysInfo::productType() provides various code/distribution
names which in some cases have little to do with the "host_os" that is
expected by the extension service API.

This change involves osTypeToString to instead return plain OS names.

Change-Id: I24b8070342c1de9de9040adcf5e06be967b6a180
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-07-01 05:27:00 +00:00
Cristian Adam
ee54b2cfca Terminal: Remove TOO_OLD_WINSDK check from libptyqt
Qt Creator will always use newer Windows SDKs, as we require at least
Windows 10 1809.

The define for TOO_OLD_WINSDK was done arbitrarily and broke
(LLVM-)MinGW builds.

Change-Id: If8e1fd4e0e3615bda23483877e67988ca04ea9f7
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-29 07:31:27 +00:00
Miikka Heikkinen
658142aed2 QmlDesigner: Clean up unused imports after effect node deletion
Import removal is done asynchronously as false node deletions can be
triggered by node reorganization that happens sometimes e.g. when
undo/redo is done.

Fixes: QDS-11741
Change-Id: I1d33e43ee205408c6a0fb2a45347ede13c02c4ed
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-06-28 14:23:18 +00:00
Thomas Hartmann
548cd083b4 QmlDesigner: Fix selection from code editor
Calculate the correct node length if nodes are enclosed.
We cannot just look for the next closing brace, we have to
ignore opened and closed braces.

Task-number: QDS-12543
Change-Id: Ieee232777637f4bc022e65af5d8cb437e025a146
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2024-06-28 12:22:56 +00:00
Mahmoud Badri
d5ea5cabe4 QmlDesigner: Fix 'add to selected' gone from conent lib materials
Fixes: QDS-13125
Change-Id: I58737e8138579ed15166cefdfad05b11269a80da
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2024-06-28 11:44:32 +00:00
Christian Kandeler
d79d4f2527 ProjectExplorer: Optionally deploy dependent projects
... rather than just building them.

Fixes: QTCREATORBUG-27406
Change-Id: I5ddbb9ee4a05c6843bd78cf01746c57c6cacda3c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-28 10:25:17 +00:00
Marcus Tillmanns
691c4adeec GoCmdBridge: Add golang based command bridge
Change-Id: I3b791febafc09f897afbf6d9da999deeca6f5115
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2024-06-28 09:44:23 +00:00
Burak Hancerli
e311a3bf61 QmlProjectManager: Fix main qml file path and duplicate signal connection
Task-number: QTCREATORBUG-30685
Change-Id: I3d3a0d1bee85b56e43b8bb2e591aa56528554e06
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-28 08:15:54 +00:00
Knud Dollereder
db9ee194fb QmlProjectManager: Respect import paths when checking the uri
When checking if an uri in a qmldir file is valid,
the cmake generator did not take the importPaths given in
the qmlproject into account. This is now fixed.

Change-Id: I403665f0c9c57bd41f644cd7c7e19349820b1824
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2024-06-28 08:14:48 +00:00
hjk
cdf8d79adb QmlJsEditor: Partially aspectify settings
Only the non-gui part for now.

Change-Id: I97e59f6cb251bfb1be4dd88cc2c2f9c2e71ce219
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-28 07:50:29 +00:00
Christian Stenger
37a061aabc Debugger: Add comment for revert
Amends 2364448f91.

Change-Id: I1b34c7b69c0817460d20c8ea892bdc54d7658e4a
Reviewed-by: hjk <hjk@qt.io>
2024-06-28 07:46:01 +00:00
hjk
803c068c30 QmlJsEditor: Merge LS settings files into main settings file
Collecting relevant pieces in preparation of settings aspectification.

Change-Id: Ia221de3babf301f4f5d3583d346eeb9f91046aa4
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-28 07:12:50 +00:00
hjk
66853bacf7 Git: Fix two QMultiMap deprecation warnings
#if QT_DEPRECATED_SINCE(6, 0)
    QT_DEPRECATED_VERSION_X_6_0("Use insert() instead")
    iterator insertMulti(const Key &key, const T &value)
    {
      ....

Change-Id: I94c79e16776775b6b2032113e690e73b63a03dc9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-28 07:12:26 +00:00
Eike Ziller
38e005692e Plugin meta data: Add full stop to descriptions
Where they were missing. The text is shown as a paragraph in the
extension manager.

Change-Id: I6e15c89fe4023b222e9c476f4312e13fcb0905c0
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2024-06-28 06:46:52 +00:00
Christian Stenger
5333082054 Debugger: Silence soft assert
Amends c83a0be72d.

Change-Id: Idb62b20af8052ee7d20f7df2c82125cd12e26738
Reviewed-by: hjk <hjk@qt.io>
2024-06-28 05:26:41 +00:00
David Schulz
2364448f91 Revert "Debugger: simplify interrupting windows processes"
Ctrl+C events are only handled properly for console applications. When
gdb debugs a GUI application the CTRL+C events are not handled. This can
be even reproduced with a plain gdb started from CMD.

This partially reverts commit 9d88da6c2b
and 670b4ec729.

Fixes: QTCREATORBUG-31131
Change-Id: I11c9d9dc08b4dbe450f38e27559b130dd317b675
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-28 05:14:33 +00:00
Christian Stenger
0dfe7213eb ExtensionManager: Fix qbs build
Amends 6ffe1a8061.

Change-Id: Ibb35fe606f25bd1e1b7a5d457062299f50f80af1
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-06-28 05:05:44 +00:00