Commit Graph

80400 Commits

Author SHA1 Message Date
Henning Gruendl
5020398865 QmlDesigner: Fix SearchBox resizing
Task-number: QDS-9236
Change-Id: I326ac238bf9a0a8f519a32fb9fc1c9ac6da15cb4
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-22 15:02:01 +00:00
Henning Gruendl
5c9758a104 QmlDesigner: Fix SearchBox resizing
Task-number: QDS-9235
Change-Id: I8802582f5a1574961dfbffdb599b1e10192bc196
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-22 15:01:30 +00:00
hjk
5358249ed9 Qnx: Simplify QnxUtils
Make a 'static' class a namespace, inline one function that's only used
once.

Change-Id: Ibaac2b677847dbc803bdfa50f483d6811182dcf1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-22 14:49:21 +00:00
hjk
75071b1464 Qnx: Improve reading installed configuration for remote build devices
Simplify the code in the process.

In fact, looks like this was not doing much except setting the name
and version number, which are not even really needed for building.

Change-Id: Iafa65f0e2a0708888d1fc4ca19c932560ee4af68
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-22 14:45:26 +00:00
Henning Gruendl
8ed634fde1 QmlDesigner: Fix navigator search widget design
Change-Id: I425bbf715164ee41fc4d9bca37c25f09f9093871
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-22 13:05:25 +00:00
Artem Sokolovskii
0c72395148 Android: Add SdkManagerOutputParser tests
Change-Id: I0d0f7318aa670885def5c6a41b9c76ab539713c2
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-22 11:46:23 +00:00
Cristian Adam
53397306b9 LLVM/Clang: Update to version 16.0.0-rc2
This was the newest release tag last week.

Change-Id: Idd272db9dc7ff797023fac72ea8a252729d979b3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-22 11:40:31 +00:00
Marco Bubke
18157d0b24 Sqlite: Add pathExists function
The 'pathExists' function can be registered to the database connection
and is then callable in Sql.

Task-number: QDS-9217
Change-Id: I21afc5cd38765854daa0b1058cc5e8946b551924
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2023-02-22 10:48:05 +00:00
Marco Bubke
b4ab1e173b Sqlite: Add progress handler
Sqlite::ProgressHandler handler{
  [] { return Sqlite::Progress::Continue; },
  1000,
  database};

is setting up a progress handler for this scope. If the handler is
destructed it will automatically reset the handler on the database. The
handler is active for the whole database connection.

Task-number: QDS-9216
Change-Id: I59831f40d32c062eefdfb0c4dfbf3045058e1fd2
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2023-02-22 10:47:55 +00:00
Eike Ziller
ddbf8a4ffb Merge remote-tracking branch 'origin/10.0'
Change-Id: I8a53e2e8216fab7e45c3a1b8a3d2dc6656dfa7e2
2023-02-22 11:28:08 +01:00
Leena Miettinen
27760c38c6 Doc: Describe Call Hierarchy view and language server button
Task-number: QTCREATORBUG-28721
Change-Id: I9275c5f0a7ca838aab29c42962e88d4b80ed8622
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-22 09:57:16 +00:00
Henning Gruendl
786fb803aa QmlDesigner: Remove redundant appliance of CSS
Change-Id: I330430ac143079a104dbd53d20262e4af8e9676b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Ali Kianian <ali.kianian@qt.io>
2023-02-22 09:55:26 +00:00
Marcus Tillmanns
035c67f7f5 ProjectExplorer: Fix relative node paths
The previous change for QTCREATORBUG-288 introduced an issue where
relative folder nodes would include ".." in their internal path.
This made it impossible for code to search for absolute directory
names.

This fix makes it so that the path of folder nodes are cleaned.

Fixes: QTCREATORBUG-28826
Change-Id: I3fd5b289b10f012b6bacb7f13bdbc71f905fb252
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-22 09:54:54 +00:00
Pranta Dastider
a34401eae2 QmlDesigner: Create Figma Quick Control Template merge doc
There is a new feature, which lets to have Figma users templates
from Qt Design studio on Figma end. And later getting components
imported from Figma to Qt Design studio to have them accurately
as local components. This document aims to note that process.

Fixes: QDS-8719
Change-Id: I8b375730c32c8a41bbeebcacc616ed2a295bf881
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-22 09:51:12 +00:00
Leena Miettinen
0328c14167 Doc: Describe color tooltips for QML code in code editor
Task-number: QTCREATORBUG-28721
Change-Id: Ifdd82a9e72bc19f484f6b3737f1a562a95e9a7c3
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2023-02-22 09:22:51 +00:00
Mats Honkamaa
a06da113b7 Doc: Update docs related to live previewing from toolbar
The Live Preview icon is replace with a Live Preview button.
Also some other minor fixes.

Task-number: QDS-9120
Change-Id: I9c351f91f28610206c5986821e0a84349f370869
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-02-22 09:08:19 +00:00
Thomas Hartmann
06b6d5d768 QmlDesigner: emit isDesignModeEnabledChanged if mode is changed
Since we adjust the semnatics and allow a mode change if there
is a ui.qml file (even though the design mode is technically disabled),
we require this extra emit.

Task-number: QDS-9040
Change-Id: I1536b6ee9349ab49cca77c7c29b3abe8c7bac973
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-22 08:19:01 +00:00
hjk
c18ebe1fda Qnx: Fix discovery of host and target for remote build devices
Change-Id: I9fa65f0e2a0708888d1fc4ca19c932560ee4af68
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-22 07:59:27 +00:00
hjk
c43911022b Qnx: Baby steps towards remote compilation
Change-Id: Idafb7a71fcbad85552cd0fa2bded9460d2132bef
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-22 07:04:44 +00:00
hjk
dbd187852e Qnx: Clean up headers a bit
It's a leaf plugin, no exports.

Change-Id: I062f6f72ee98525c0a6d684c74866b485ffdc41d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-22 06:58:47 +00:00
hjk
2f439af7a4 Qnx: Use /tmp for temporary pid files
/var/run is not writable for users in a lot of setups.

Change-Id: I510c04f6ee5887e3c58b3f6d4a2a870d9c0bc5a2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-22 06:43:56 +00:00
Christian Stenger
5b6ef231ba Copilot: Fix Qbs build
Change-Id: Id5e40971981846867fd3e16a5a255d553a15610c
Reviewed-by: hjk <hjk@qt.io>
2023-02-22 06:38:07 +00:00
David Schulz
01d3ed0463 Debugger: fix optional and variant dumper test when using qt5 qmake
Change-Id: Ib9cf05384535eab9d0e39a49d96aa88af48548d2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-22 04:58:58 +00:00
Jarek Kobus
60a8ecd1b0 ExtraCompiler: Use QPromise for async calls
Change-Id: I810603da8ccee4618ca02f29682fa5f8abe9d33e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-02-21 17:09:51 +00:00
Leena Miettinen
03779ef94b Doc: Describe how to temporarily cancel Clangd indexing
Task-number: QTCREATORBUG-28721
Change-Id: If942fb7ca6e0dfa5601b62b340ff3bcd3d9b6bcf
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-21 17:09:26 +00:00
Henning Gruendl
a4df8e59de QmlDesigner: Update design on widget tool bars
* Add more style definitions in CSS
* Add CSS to curve editor, timeline and transtion editor tool bar
* Add spaces to curve and transition editor tool bar
* Fix icons and margins in form editor tool bar
* Remove inline CSS from nevigator search widget

Change-Id: I21467783ad491d5c3ba646e6b3ac2d95b47e5fb5
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-21 16:08:20 +00:00
Vikas Pachdha
0e7a603568 UnitTests: Disable warnings as errors
Change-Id: Ib58799510258973638f25ec4d52ce62710c26f54
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-02-21 15:55:35 +00:00
Ali Kianian
8abe67672e QmlDesigner: Apply Toolbutton style to the toolbar and curveEditor
Change-Id: I65879951025897a638f25ec4d52ce62710d26f54
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-02-21 15:49:02 +00:00
Ali Kianian
e46fe19768 QmlDesigner: Modify icons for 3d toolbar
Task-number: QDS-9082
Change-Id: Ib4536db2f353c5eba1b9eb18743f92372d5296d7
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-02-21 15:48:10 +00:00
Ali Kianian
1b82f7c164 QmlDesigner: Tweak the curve editor toolbar
* Less space is applied between the items
* Colors are modified

Task-number: QDS-9079
Change-Id: I5c9dbdf4ecdb518d509532a8e49c5eda098d760a
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-02-21 15:48:01 +00:00
Ali Kianian
a98c6583be QmlDesigner: Modify the style of slider for panelwidgets
Task-number: QDS-9134
Change-Id: Ie1a6ab94a546247e0cdd35798fc8085be005d13c
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-02-21 15:41:58 +00:00
Brook Cronin
0d8c76e853 QmlDesigner: Add double button to material browser
Change-Id: I5dda141374b2804bab009359b1826aea9ba16e31
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-21 15:08:18 +00:00
Alessandro Portale
3000426618 QtSupport: Remove screenshot of removed video tutorial
Change-Id: I23f8948ec90f8c3d52b59f87f2913b0279fac854
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-02-21 14:55:10 +00:00
hjk
652d7c53ef Utils: Use FilePath::fileName() for FSEngine(BaseName) implementation
That's the terminology Qt used in the main engine.

Change-Id: Ieb6a1c3ef19c306ed64b0a530c1a956a6266b20d
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-02-21 14:45:33 +00:00
Samuel Ghinet
e831c9e713 QmlDesigner: Fix textures added as image or dragged using the icons
Instead of using the paths to the real, downloaded textures, the paths
of the icons (thumbnails) were being used.

Task-number: QDS-9228
Change-Id: I828b765c4f86502403b84fdf18532d1353d3a62c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-21 14:28:33 +00:00
Aleksei German
0e8dcb8862 QmlDesigner: Update MCU Wizard template for 2.4
Task-number: QDS-4729
Change-Id: I17c07e87542ad140c55e8cde5bc75086b0e05cd0
Reviewed-by: Sivert Krøvel <sivert.krovel@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-21 14:07:19 +00:00
Samuel Ghinet
f45080e619 QmlDesigner: Don't show the context menu for not-downloaded textures
Task-number: QDS-9227
Change-Id: I1f0c147e2dfd69bee9da0872b15d796741b57609
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-02-21 12:41:46 +00:00
Samuel Ghinet
bf61be5cc0 QmlDesigner: Allow texture download only via left mouse button
Previously, the user would have downloaded the real texture even when
clicking with the right mouse button.

Task-number: QDS-9226
Change-Id: I4040cda4a8c541edc12b4bfe821a09c76eb7efc4
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-02-21 12:38:48 +00:00
Leena Miettinen
1ff63e90c3 Welcome: Remove link to obsolete video tutorial
Fixes: QTCREATORBUG-28823
Change-Id: I6e4ce1fe9309a4a5e3a7e49523a7fd4ad55bf540
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-21 12:11:39 +00:00
Christian Kandeler
84ab58dfef Fix qbs build
Change-Id: I44e6c9318dcc591ae08f0958bd4b659e0f79fa75
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-21 12:11:33 +00:00
Eike Ziller
31de62fb23 C++ settings: Don't manually break tooltip
Use automatic word-wrap instead, by making it an html tooltip. This is
also less weird when translating (though one needs the <p> tags).

Change-Id: I96f2719b46c5a0242ef6e94db38bb67a6f79ab80
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-21 12:04:33 +00:00
Miikka Heikkinen
9d0099245a QmlDesigner: Fix crash at shutdown
It is specifically PureActionInterface pointer that is getting deleted,
and it is subclassed, so its destructor needs to virtual for delete to
work properly.

Fixes: QDS-9221
Change-Id: Iba3b9d944de521d7e115b0d85f5a0f107b703fc1
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-21 11:55:09 +00:00
Samuel Ghinet
87f76d9bfa QmlDesigner: Fix downloading textures no longer working after some clicks
A "locking" mechanism was implemented to prevent multiple textures from
being downloaded at the same time. However, there was a mistake made,
which made it so that when a texture that had already been downloaded
was clicked again, this locking would be enforced and not released.

Also, fixed minor issues:
* The download button now has a black outline, so as to better
distinguish it inside black-and-white textures
* Canceling the download of a texture no longer marks the download as
failed -- it should show it as if the download was never attempted.
* Fixed tooltips not showing the texture size for downloaded textures
- and now we also update the tooltip text after the real texture has been
downloaded.
* Always creating the "target path" in the FileExtractor, if it does not
exist -- this is different from the "target folder" name, which is an
folder that can optionally be created inside this "target path"

Task-number: QDS-8664
Change-Id: Ieac0e81a5595a8bff3d1aa7ff6252e16c2509c2e
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-21 11:47:01 +00:00
Henning Gruendl
cb2ffbcc09 QmlDesigner: Change default icon color
Change-Id: I9dbb5ac43f47820da54e0fe9c8ffcf22a9b05507
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-21 11:45:23 +00:00
Henning Gruendl
d105b20c7e QmlDesigner: Add pixel metric tool bar extension
Change-Id: I65f0ce65113f9d8b4af0ea95a914e2fd4fc2bb07
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-21 11:45:06 +00:00
David Schulz
3d65a441a0 Core: reduce flickering when restarting a search
The cancel button of the search result widget gets visible when a search
is currently ongoing in other states it is hidden. Showing and hiding
the cancel button changes the height of the replace tool bar. In the
case of clangd a search is started whenever the replacement text changes
to update the results. So if the results are received shortly after
requesting them the cancel button is only shown briefly resulting in the
flickering. Avoid this by setting a fixed minimum height to the label
containing the cancel button.

Change-Id: I6fb7a4cfe256c7612a902be621fa9ad971681ee7
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-21 11:44:33 +00:00
hjk
607118f8ae QmakeProjectManager: Remove unused declaration
Change-Id: I187538270bdcb9288d63e7ae73944101552e3485
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-02-21 10:55:48 +00:00
Orgad Shaneh
a5e98b1fa0 CMake: Avoid redundant copy
Amends commit e8802d92e3.

Reported by Coverity.

Change-Id: Ibc0b1cdf1918d5bfed5104f14098096d158526e2
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-02-21 10:48:58 +00:00
Leena Miettinen
55760cb5f7 Doc: Fix reference to an \image after image name and format changed
Change-Id: I581a0c3ad6be9cc435fc27069d95c72816948755
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-02-21 10:31:10 +00:00
Marcus Tillmanns
625f0ef726 Copilot: Add LSP plugin for Copilot
Fixes: QTCREATORBUG-27771
Change-Id: I1249b9a4492427208a70b3e21bf20ac668fc3c50
Reviewed-by: hjk <hjk@qt.io>
2023-02-21 10:26:12 +00:00