Commit Graph

80509 Commits

Author SHA1 Message Date
Miikka Heikkinen
57448021b8 QmlDesigner: Fix content library visibility logic
Also fix enable logic of context menus in content library.

Fixes: QDS-8446
Change-Id: I82f80779f507aa5336ebafac5cffc36365238fc5
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-12-02 08:19:56 +00:00
Christian Stenger
b43f9fd002 McuSupport: Fix tests
Change-Id: I17f4194f2e5be319e73834aa0f10e99821874c9a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Sivert Krøvel <sivert.krovel@qt.io>
Reviewed-by: Daniele Bortolotti <daniele.bortolotti@qt.io>
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-12-02 08:01:22 +00:00
hjk
a89dfe41b4 Debugger: Add a test for more recent Debian gdb
Change-Id: I960bf51b42c46ee67a8fc685a5c940747c797944
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-12-02 06:49:33 +00:00
Cristian Adam
e0a563b236 CMakePM: Migrate build environment settings also to configure step
This allows a project to be properly configured with Qt Creator 9 when
the build environment had user defined changes.

Qt Creator version prior to 9 had one setting for both configure and
build steps.

Fixes: QTCREATORBUG-28372
Change-Id: I0da8065085bd6628ba75923c17b46648eb031801
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-12-01 23:52:10 +00:00
Aleksei German
44cfc4a8cd QmlDesigner: Add nullptr checks in ActionEditor
Encountered an odd nullptr in QmlJS::Value *value.

Change-Id: I9140ee15f01a430477b808aa7b664f5c40889c30
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-12-01 20:30:56 +00:00
Henning Gruendl
d9054d1f10 QmlDesigner: Add qt insight infrastructure
* Add InsightSection for property editor
* Add functions in property editor qml backend, context object and view
* Add InsightTracker in text to model merger
* Add auxiliary data properties

Task-number: QDS-7489
Task-number: QDS-7833
Task-number: QDS-8073
Change-Id: I3fbec3d387f815d71640b512e67829076b600d11
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-12-01 16:50:44 +00:00
Alessandro Portale
6c676636ba WebAssembly: Cleanup FilePath-related includes
Change-Id: If8308b0396ccb0e837fbbb7fcf15f49f7febcc55
Reviewed-by: hjk <hjk@qt.io>
2022-12-01 16:44:45 +00:00
Thomas Hartmann
740a65571f StudioWelcome: Use QQuickWindow on macOS
This fixes flickering on macOS introduced by Qt 6.4.
Unfortuntly keyboard focus does not work on Windows in this case
if the splashscreen flag is set.
Therefore we only use QQuickWindow on macOS.
Simplfiying code and removing unused code.
The variable doNotShowAgain is always true now.
The check in delayedInitialize can be removed,
since we already show a warning during creation.

Task-number: QDS-8113
Change-Id: I8185a58175f4d2eafe92561fbded535d7ae393a2
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-12-01 16:15:18 +00:00
Thomas Hartmann
9e9cfeeeac StudioWelcome: Fix warning
Change-Id: Id6a218998f2b0a767d4bd23c8936f5863c00d7b1
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-12-01 16:05:47 +00:00
Jarek Kobus
8d6d51ec3e tst_TaskTree: Increase the timeout
Change-Id: I8306aeb3719feb295a27339736209159f688a734
Reviewed-by: hjk <hjk@qt.io>
2022-12-01 15:18:40 +00:00
Thomas Hartmann
17c09c1e92 QmlDesigner: Fix warnings
Change-Id: Ia88bbe9bc05fcd1725833d1627499dac3a32c11d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-12-01 14:47:42 +00:00
Mahmoud Badri
fd4d1f08fa QmlDesigner: Add a tooltip to material browser textures
Change-Id: I5a2dd41602bb03357fdd1b7280242f6ea43ff56f
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-12-01 13:44:20 +00:00
Marcus Tillmanns
ad90dd958a WebAssembly: Remove file access from device
Change-Id: Ia2bfa4a7eb4507250ae355d78d6ebdd5e2a54e4e
Reviewed-by: hjk <hjk@qt.io>
2022-12-01 13:31:07 +00:00
hjk
e4c49b720e Utils: Consolidate the isRelative/isAbsolute implementations
Even if we do it wrong in corner cases, we should do it consistently.

Change-Id: I68d5a6e55ede889cb44bedb46d0ea545dae7ba2c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-12-01 12:51:22 +00:00
Christian Kandeler
a09e87b3d3 CPlusPlus: Do not try to qualify the names of template parameters
These always appear as written.

Task-number: QTCREATORBUG-28186
Change-Id: Iea8cc99ee6c17c1320817977fdb96ae1f730bc45
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-12-01 12:18:42 +00:00
Christian Kandeler
7c0bc1384c CppEditor: Prevent showing unwanted function template parameters
Task-number: QTCREATORBUG-28186
Change-Id: Ic52090e873b4defa68cf98e2a5d08f2f0604e714
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-12-01 12:17:49 +00:00
Christian Kandeler
524f9e063a CppEditor: Make "Move Definition" available for member templates
The resulting signature is broken; this needs to be fixed in a follow-up
patch.

Task-number: QTCREATORBUG-28186
Change-Id: I9b8211c6d6a4b7bef5940da5e74dda00024abd19
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-12-01 12:17:32 +00:00
Christian Kandeler
4e7adc2462 CppEditor: Another name minimalization fix
... involving using declarations.
See also aae3ce15aa.

Fixes: QTCREATORBUG-28386
Change-Id: I4171dce7b4e34b41c4a894e3bb34b3f62f82ac0f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-12-01 10:48:32 +00:00
Mahmoud Badri
5f7d36d1cb QmlDesigner: Fix material browser's textures search
Change-Id: Ia0750f0f61d821deeb1d0d3630fb770803e604ee
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2022-12-01 09:09:08 +00:00
hjk
5f4a5802cc Core: Make UtilsJsExtension::relativeFilePath() work on remote
Task-number: QTCREATORBUG-28355
Change-Id: I67fad186ed31e42688835b38177f3fb7cd59c1d0
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-12-01 07:45:22 +00:00
Marcus Tillmanns
d5b585dad6 Debugger: Fix dumper for std::string from lib++ in GDB
Fixes: QTCREATORBUG-28511
Change-Id: I56ca11c9a5f9b7a885bbaa0223bd2f47ea4abb4b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2022-12-01 06:55:20 +00:00
Christian Stenger
ad072db2b6 AutoTest: Improve run and debug under cursor
Especially when running tests that are not macro-based
(e.g. QTest) it could happen that more functions had been
executed as the filtering only applied when the cursor
was located at the definition of the function.
Try further filtering using the code model to avoid running
functions that match by name, but are located in a different
class.

Fixes: QTCREATORBUG-28496
Change-Id: I6c543f028aa20a75cc091e8db87207c41be580aa
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-12-01 05:51:01 +00:00
Thomas Hartmann
916368ede4 QmlDesigner: initialize unique pointer
This crashes with Qt 5. With Qt 6 this "worked",
which was most likely pure luck.

Change-Id: I652b190ae0d4b00adb4c48e601e7be9512f86d16
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-30 21:44:25 +00:00
Thomas Hartmann
b9e7fd2415 QmlDesigner: Take puppet version into account
Change-Id: I8bd6f588dcf00e20dbcddde9caee8eef3eafc3b0
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>
2022-11-30 20:11:53 +00:00
Mahmoud Badri
072bdb22fc QmlDesigner: Update isEmpty state upon content library load
Change-Id: Ibb26294efac90e177f5e4f691609a95f6a181475
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-11-30 19:12:47 +00:00
Mahmoud Badri
714c3c381e QmlDesigner: Show content library under enterprise license only
Fixes: QDS-8453
Change-Id: I84668ee370e494ff303734faefb0b5e0895ca061
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-30 19:11:52 +00:00
hjk
39ffdb416f CPlusPlus: Use FilePath for resolved include paths
... and fix fallout.

Change-Id: I66886e91ff476eff15db51cc024a8021e952d44d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-11-30 17:27:56 +00:00
Thomas Hartmann
7e03b29bc7 QmlDesigner: Add new menu for export actions
Task-number: QDS-8092
Change-Id: If83ea84fded27485c50865e49d8d184fecc6d454
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-11-30 17:16:12 +00:00
Aleksei German
bb5c6a846d QmlDesigner: Add validId verification
Task-number: QDS-8449
Change-Id: Iaa965fa1a54d93ff0f76680d1673d883fa3dfa0f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-30 16:27:43 +00:00
Mats Honkamaa
af8075cbb2 Doc: Fix missing lights images
Add missing 3D lights icons.

Task-number: QDS-8433
Change-Id: Iaebe003efcaecbaf394dc4383f4de722d30142fe
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-11-30 16:18:59 +00:00
Jarek Kobus
dc3a4f0002 QMakeStep: Remove unneeded override
Change-Id: Ib91ee608673c6a2b33ebfe704c8f31b647ab897e
Reviewed-by: hjk <hjk@qt.io>
2022-11-30 16:14:49 +00:00
hjk
82ecd3910b QmlProjectManager: Use a PathChooser for the fallback qmlscene
Allows to browse for binaries on the target instead of having to
specify a proper fully qualified remote path manually.

Change-Id: Iaf9dc5c4fe921a7188ef2178f10403fa01e69d03
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
(cherry picked from commit 50f6afe4d0)
Reviewed-by: hjk <hjk@qt.io>
2022-11-30 14:47:56 +00:00
Amr Essam
c7f9d9af24 QmlDesigner: adjust caller code to new binary name QQEffectMaker -> qqem
Task-number: QDS-8450
Change-Id: I8a82a31158e3c44903126b12d430b8563dde7f26
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-11-30 13:34:13 +00:00
hjk
7e9d50a2c9 Remove a few now-unnecessary cleanPath in conjunction with resolvePath
Change-Id: I05ee0116183a30e907fbd8e0b4faae9e6e58723d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-11-30 13:32:05 +00:00
David Schulz
69fef7480e LanguageClient: prevent nullptr access
Change-Id: Id0dc46d3775d5e765d1e7d2c2eac0d7f807f34ce
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-11-30 13:11:09 +00:00
Alessandro Portale
76804a0839 Android: Link directly to command line tools download
Change-Id: I6a5d4321a0d6c0b854730615aa33acfe4986c9b6
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2022-11-30 12:30:13 +00:00
Jarek Kobus
a038ca5fcb AdvancedDockingSystem: Add const reference into range-for loops
Change-Id: I623e6d315180596c0dcd5bf09982e27428b4674a
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-11-30 11:57:05 +00:00
hjk
4eee8a12fb Utils: Clean path in FilePath::resolvePath
Change-Id: I27e34e21c2922db4d7598c77688133aebf6ce893
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-11-30 11:47:33 +00:00
hjk
8679138f73 QMake: Fix building of remote projects
Task-number: QTCREATORBUG-28355
Change-Id: I7e4a5b1b74fe7c95f8c56eb512a1714d2afb0a70
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-11-30 11:41:52 +00:00
Alexander Pershin
5e50b9d604 CMake: Checkbox for showing advanced options by default
Change-Id: I32f6ca068de60adf90eb0d9bc5eb7cfadc613e2d
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-11-30 11:28:04 +00:00
Jarek Kobus
d701cd5dbe AdvancedDockingSystem: Add context objects into connections
Change-Id: I564b9ffe6c7809a6d50a172062c52558f3023fc1
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-11-30 11:23:04 +00:00
Jarek Kobus
4080f31d25 AdvancedDockingSystem: Fix dropWidget()
I believe the original intention was to pass dockWidget
into notifyWidgetOrAreaRelocation(), otherwise the whole
"if (!dockWidget)" condition above would be no-op.

Change-Id: I0b809ec6587489eaf5e4f79c5c16f26bbb8346c2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2022-11-30 11:22:36 +00:00
Alessandro Portale
6f7837e5e9 Android: Remove gradle.properties file handling
The modification of gradle.properties files was originally a feature of
the Android plugin which eventually moved over to androiddeployqt.

Moreover, this code got accidentally disabled in Qt Creator 4.10 and was
appartently not missed till now. I only noticed it while "FilePath-
ifying" code in the Andsroid plugin.

This change removes the gradle.properties file handling code from Qt
Creator.

Fixes: QTCREATORBUG-28494
Change-Id: Id4f2722f4965c877a065386b34a71d8368147b08
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2022-11-30 10:53:56 +00:00
Christian Stenger
9731945788 PE: Fix compile without tests
Change-Id: Id1e4daa7eec3860d833cd0b97148d5dea74e44ef
Reviewed-by: hjk <hjk@qt.io>
2022-11-30 10:52:40 +00:00
Aleksei German
0c31cc475b QmlDesigner: Categorize slot actions
Task-number: QDS-8447
Change-Id: Ibc96bfcb7c87f0888e15f2533cab2567098a3760
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-11-30 10:45:21 +00:00
Alessandro Portale
65f27c765a Android: FilePath-ify certificate handling
Change-Id: Ic7bf25567ac74555926d105c03cdac5a9e49b5a6
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-11-30 10:29:29 +00:00
hjk
d743770493 ProjectExplorer: Code cosmetics
Change-Id: Idf96413b2fc70418efe14db5f581624028e29dcd
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-11-30 09:57:49 +00:00
Jarek Kobus
1dbf3ad120 TaskTree: Fix some clazy warnings
Change-Id: Ibd0931d1298489345f4055b43610f3a0747e05bc
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2022-11-30 09:11:42 +00:00
Amr Essam
aa69465ecf QmlDesigner: drag effects from assets view to navigator
Effects can be dragged from the assets panel to the navigator,
also effects can be dragged between components in the navigator.
There were lots of transformations because the way navigator works in not suitable with effects

Task-number: QDS-8235
Change-Id: I378a70b5586fa95d0890bda4fbe53191c7ab0bc4
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-11-30 09:05:43 +00:00
hjk
aad99ea408 QMake: Fix remote paths handed to the file cache
Task-number: QTCREATORBUG-28355
Change-Id: I8fe2fe5ea5bb4cdc49547a191ddf1f4af36696ba
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-11-30 08:42:12 +00:00