Commit Graph

80509 Commits

Author SHA1 Message Date
Henning Gruendl
d42af9246f QmlDesigner: Update 3D Animation workspace
Task-number: QDS-9184
Change-Id: Ic45d778b0ac3704c8f706fb2a7ab00103cc1d145
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-24 09:37:34 +00:00
hjk
fb9e0397e6 Debugger: Use a QStringView for debugview into output buffer
This is unused unless debugging creator itself.

Change-Id: Ic30fe4970c4b0ec79e977ef932d0516ab1ba0792
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-24 09:34:57 +00:00
David Schulz
9655c88862 LanguageClient: do not delay requesting symbols in the locator filter
This qualifies as a user interaction and the results should be collected
as fast as possible.

Change-Id: Ia83893fab87c253b9939cfee928aa12866087aa0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-24 09:26:02 +00:00
Henning Gruendl
383315b64a QmlDesigner: Fix DoubleButton state
Fix an issue that appears when pressing the button and moving away from
it but still hold the mouse button down.

Change-Id: I06b456e410352862ea28f04e7cfaf3bdb27ae7d4
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-24 09:16:11 +00:00
Miikka Heikkinen
d3d621a7b3 QmlDesigner: End drag properly in assets and material browser views
If drag is accepted but drag ending is not notified to model, other
views will not know the drag has ended.

Fixes: QDS-9254
Change-Id: I1446bd4b52ce67afc37194c98e5c60e169fb57b9
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-24 09:03:40 +00:00
Christian Stenger
ac2d5d761d AutoTest: Fix handling of test results
Broke with d05c5b7d07. The id is
used to identify the application running a test or a global
message like some warnings or the information regarding the
current running test.
Fixes its usage and its display inside the results pane.

In the amended patch the assumption that if the m_id is empty
it corresponds to nullptr TestResultPtr was apparently wrong.
This patch fixes it so that the default c'tor of TestResult
always creates an invalid result, so that it corresponds now
to nullptr TestResultPtr.

Amends d05c5b7d07

Change-Id: I9949aec3fc2b7354de149433b7127933f2d9bf21
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-24 08:38:54 +00:00
Marcus Tillmanns
a8d6229898 Terminal: Fix libvterm -fPIC
Change-Id: Iac8a9a0ec01058edd00399c3de0746d97de6fec3
Reviewed-by: hjk <hjk@qt.io>
2023-02-24 08:37:51 +00:00
Kai Köhne
31740f562c span: Fix debug build with MSVC
std::terminate is declared in <exception>, so we need to include
this header - somewhat ironically - in the non-exception case.

Change-Id: I8ff1c20fd822b8a2a4c85faedf81f783e2779b8d
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-02-24 08:19:28 +00:00
Leena Miettinen
2c9ca6008f Doc: Describe Python interpreter selector on editor toolbar
Task-number: QTCREATORBUG-28721
Change-Id: I354c19a72e428e5361eaacb45f79c057affb9cb1
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-24 07:26:51 +00:00
Friedemann Kleint
ebb3b90dce ADS: Use only one logging category
Change-Id: I0366338d5605fea7b4b096605577e90dfa79c389
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-02-24 06:41:20 +00:00
David Schulz
78ccdb5c37 Cdbext: fix collecting required modules for python > 3.10
Change-Id: Ib8f5ff953f70cfb1ad15ea29522e02d65c58cafa
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-24 05:24:06 +00:00
hjk
e25bf6e59d Copilot: Merge copilotoptionspagewidget.{h,cpp} into copilotoptionspage.cpp
Too small to be worth a translation unit. Also drop unnecessary Q_OBJECT.

Change-Id: Ife1bce6498eae81e2979c2798f8d4f19da16a11d
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-02-23 15:45:04 +00:00
Marco Bubke
2af1e5b3b2 ADS: Fix warning for global allocation
Change-Id: Icd1a5c7c43b68e55071c9ef2c582d314e616f02c
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-02-23 15:24:29 +00:00
Thomas Hartmann
e0b75769d6 QmlDesigner: Hide import QtQuick.Controls.Windows
This import is not to be supposed to be used in the QDS context.

Task-number: QDS-8958
Change-Id: I9dbe270f9e9ceefad4c4c45e1e9ecaa2771290b3
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
2023-02-23 15:07:57 +00:00
hjk
8b243290fb Qnx: Use some placeholder for Qnx configuration names
The authoritive source for that is apparently some qconfig/*.xml file
which is not needed for actual building, so it might be missing
in some otherwise functioning setups.

Change-Id: I2aff53474e7fa0f7ee1c5bd0d8213b648cb894b7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-23 15:07:33 +00:00
Thomas Hartmann
e24242a6f3 StudioWelcome: Enable probing for example download
Without probing enabled the download will not be triggered.

Task-number: QDS-9253
Change-Id: Iae4669a2a088aba1b2078a035be2ac21b2d1bc41
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-23 14:56:27 +00:00
Brook Cronin
57ef24fa77 QmlDesigner: Fix workspaces for 4.0
Change-Id: Id6f599faa203e3260ba4cdd6a3677ddafa1a0a75
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-23 14:42:48 +00:00
Marcus Tillmanns
82194d7e9c Terminal: Add required 3rdparty libraries
Change-Id: Ic477e305f78632f5c454cd639dfc7e41fb643fe1
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2023-02-23 14:18:45 +00:00
Eike Ziller
143835aea8 Coding style: Avoid optional::value()
Change-Id: Ic4769c6f9f016415e01ca5526f6730bc93c6ea81
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-02-23 13:33:53 +00:00
Eike Ziller
c2266981c9 Add tests to Utils::wildcardToRegularExpression
It was unclear if the new non-filepath version that is added to Qt is
similar enough to replace our own version, so just add the new tests
from Qt to check.

Change-Id: I9ac2739500ab3b8557c0e6223489e0fdddd79091
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-23 13:33:37 +00:00
Alessandro Portale
b9a24753a0 Android: Fix opening of package location after build
Fixes and consolidates into one common function the package path
retrieval for the eight combinations of:

(apk|aab)(debug|release)(signed|unsigned)

Fixes: QTCREATORBUG-28791
Change-Id: I6e8c54f555b95aca448032783938f9f7f89bc653
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2023-02-23 13:10:07 +00:00
Miikka Heikkinen
70b3a6d591 QmlDesigner: Clear content library search field on model attach
This makes it in line with search fields of other view.

Fixes: QDS-9237
Change-Id: Idfb703600582fd5b06e4120d7e7d1e233f2781fd
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-23 13:08:21 +00:00
Christian Stenger
5c4cf2d018 SquishTests: More adaption to changed wizard template
Change-Id: Ib073a8eae3ee87dc46699083799a8316da66b32d
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-23 12:51:08 +00:00
Christian Stenger
0604027834 SquishTests: Fix path handling for pre-installed Qts
There is now a Qt6 and a new possible location.

Change-Id: I4feac6da2756bde77e98ce08f945ddefec7e2fb4
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-23 12:51:02 +00:00
Christian Stenger
3a7ab3ce8e SquishTests: Rename helper class
Change-Id: I39890cbd98b7e6ebcc0fdf4722d0311eb6650397
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-23 12:50:56 +00:00
Miikka Heikkinen
d39f469e51 QmlDesigner: Fix focus issues in material browser
Fixed focus loss on context menu close.
Fixed an issue with main view also handling cursor and enter keys when
editing material name.
Expanding a section now focuses the expanded section.
Dragging items from content library now focuses correct section.

Fixes: QDS-9215
Change-Id: I2176c7e52d8855c547db426b55ab739ca8f1db06
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-23 12:38:29 +00:00
Jarek Kobus
ef731faa47 Coding style: Avoid empty round brackets in lambdas
Remove outdated rules.
Use QList instead of QVector.

Change-Id: I11ea6be09080ddccfdcfc3d09f79cbeff448659e
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2023-02-23 12:05:22 +00:00
Miikka Heikkinen
8b5c454881 QmlPreview: Register previewAction properly
To make Alt+p shortcut for live preview work, it must be registered
to ActionManager. We use global context for this action as it should
work regardless of which view is active.

Shortcut is now also available in Settings/Environment/Keyboard, since
it is properly registered.

Fixes: QDS-9229
Change-Id: Iee9671acd58f264bdb7b035d0ff1a343bcbd223e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-23 11:54:30 +00:00
Christian Kandeler
61c09bcefb ProjectExplorer: Do not expand the current entry in the issues pane
The expansion of the current item makes for a "jumpy" user experience
and also runs into a nasty Qt bug when navigating via keyboard.
Instead, we now show all items the same way and provide the details in a
tool tip.
As a side effect, build issues in text marks are now linkified.

Fixes: QTCREATORBUG-26128
Fixes: QTCREATORBUG-27006
Fixes: QTCREATORBUG-27506
Task-number: QTBUG-100309
Change-Id: Id9078c6f798fad31781bb645e06bbc92fc73fba5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-02-23 11:47:17 +00:00
Eike Ziller
255afd45bf Convert Examples model to FilePath
Change-Id: I56219d2f9516662b32d45fd9b2108a0ad34113cc
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-23 11:10:10 +00:00
Pranta Dastider
c178f45d5e QmlDesigner: Update Tooltips for Frame Section
This patch update tooltip text for Frame
section fields in Property editor.

Fixes: QDS-9207
Change-Id: Iece6c73e77ca33c93f4845e18b93c10ab73f34b1
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
2023-02-23 11:05:02 +00:00
Leena Miettinen
3048a14ceb Doc: Update info about using QML language server
You can enable it in QML/JS Editing preferences.

Task-number: QTCREATORBUG-28721
Change-Id: I64b8692fb7a69bd897364b370835ef1e2b3f79ef
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-23 10:39:40 +00:00
Eike Ziller
08ace8288a Avoid triggering device login from recent project list
We filter the list of recent projects for existing files, but for remote
projects that triggers a login request directly at startup. Just don't
check projects on devices.

Change-Id: I786745a7bee9c8984b926886bcae9fe825f7649a
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-02-23 10:38:30 +00:00
Eike Ziller
7e75097447 Move examples manifest parser in separate function
and file. To make it auto-testable.

Change-Id: I19d263bf080a0089eb9a4ec0f379c52446771c0a
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-23 10:36:47 +00:00
Thomas Hartmann
6cf253e90e QmlDesigner: Track usage time of Content Library
Change-Id: I86bf7589930344fcf707f636663c067343668e69
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-23 10:31:45 +00:00
Marcus Tillmanns
00fd4c8fea Utils: Fix diriterator for scheme folders
Previously the "fileName" of every device inside a scheme subfolder
would be empty. Therefore QDirIterator would skip them.

Change-Id: Ifa46859aadbd8a81364a1fe0a72b9a50a7a396ca
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-02-23 10:25:15 +00:00
Leena Miettinen
a8e424f75e Doc: Select the tool to automatically format QML files
For example, qmlformat.

Task-number: QTCREATORBUG-28721
Change-Id: I509cba3fd842f94e7656a3356cc1de81e41fd8e2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-23 10:00:38 +00:00
Samuel Ghinet
6c8d75e690 QmlDesigner: Fix textures becoming misaligned in a search
When doing a search, some textures appeared misaligned. This was caused
by the fact that the "invisible" (i.e. hidden) textures had their Image
set correctly as invisible but the delegate itself remained visible.

Task-number: QDS-9234
Change-Id: Ia2cd6f4f6795bb435567b8915e770b78461babed
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-02-23 09:55:00 +00:00
Jarek Kobus
d44126c300 Unittest: Drop unneeded dependencies to coreplugin files
Amends baa83725f6

Change-Id: I82b472585dc30b0466eace15897f5d96fc7e9fd9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-23 09:35:38 +00:00
Orgad Shaneh
3d8b46685a MSVC: Enable exception handling for libs that use STL streams
Sample warning:
Building CXX object src\libs\qtcreatorcdbext\CMakeFiles\qtcreatorcdbext.dir\common.cpp.obj
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\include\ostream(342): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\include\ostream(335): note: while compiling class template member function 'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned long)'
F:\Projects\qt-creator\qt-creator\src\libs\qtcreatorcdbext\common.cpp(20): note: see reference to function template instantiation 'std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(unsigned long)' being compiled
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\include\sstream(655): note: see reference to class template instantiation 'std::basic_ostream<char,std::char_traits<char>>' being compiled

Change-Id: I26508048a875aabe4c5b80ef4cccfe091a2a145e
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-23 09:29:28 +00:00
Marco Bubke
e675fecb9e UnitTests: Make test fore robust
Change-Id: I6e92f242f759a89a11c77d862b5158c86b2b7a5a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-23 09:05:54 +00:00
Marco Bubke
42bb3a8579 Sqlite: Update to 3.41
Task-number: QDS-9241
Change-Id: I3875982138e809611e96eda9c4c5bd59fd70fcd4
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-23 09:05:37 +00:00
Marco Bubke
e78837a27a UnitTests: Disable warning for self assign overloaded
We want to test it so we cannot fix the code.

Change-Id: Ieb0517e539ae60c275069b790ca32380d39a59f0
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-23 09:05:24 +00:00
Marco Bubke
e99613522f Utils: Fix initialization
Change-Id: I71a7c408a1ab0e6073a17884299d087688b1e2d2
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-23 09:05:15 +00:00
Marco Bubke
20c366aa48 UnitTests: Disable self move warnings
We want to test self move, so we cannot avoid the warning.

Change-Id: Id785690d40cfc5299e65c9f0e69abe6e336ba9ff
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-23 09:04:55 +00:00
Marcus Tillmanns
db80574b25 Utils: Use runBlocking()
Change-Id: I9df8b8fcdc08129691cac818c779a73f47b789c6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-02-23 08:50:52 +00:00
Jarek Kobus
b364e4a9cd LocatorFilter classes: Use Core namespace
Change-Id: I4fd1b1ed6aa9d844ed49123e80bfb066b9fa7af2
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-23 08:28:45 +00:00
Jarek Kobus
a4fa08f137 EditorManger: Move BaseFileFilter::openEditor into EditorManager
Change-Id: I68e41ea041583a5dfbf4a76517af07ecac065039
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-23 08:28:24 +00:00
Eike Ziller
9027758b89 Markdown: Fix keeping scroll position when text is edited
Change-Id: I1812f2835cc0e9bc23aeb1237363b82af1acc479
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-23 07:13:17 +00:00
Eike Ziller
c90423eb05 Markdown: Remove unneeded context
Change-Id: I5b574f33d335a1a52792aad4520e5abc16ec2645
Reviewed-by: hjk <hjk@qt.io>
2023-02-23 07:13:06 +00:00