Commit Graph

80509 Commits

Author SHA1 Message Date
hjk
fee3a1dc78 Utils: Add a PushButton object to LayoutBuilder
Change-Id: I1ed0fd9a940fcaa5361a7d619a5d316f646332b1
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-08-10 14:23:53 +00:00
Piotr Mućko
1a2732ee9c McuSupport: Use FilePath instead of QFile/QDir when parsing config JSONs
Change-Id: If150fcf73953a4bdeae8a0b50586d1dcf89b42a6
Reviewed-by: hjk <hjk@qt.io>
2022-08-10 14:14:31 +00:00
Christian Kandeler
9c963ce8ae LanguageClient: Do not clear shadow documents on reset
We need to preserve this information. Instead, clear only the list of
reverse document dependencies.

Change-Id: I5589d5e3eff613706ea5f2029df1f90eacbbbb4e
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>
v8.0.1
2022-08-10 11:14:56 +00:00
Christian Kandeler
93fbef4de6 ClangCodeModel: Consider the case of a restarted client
We must not assume the initialized() signal comes only once.

Task-number: QTCREATORBUG-27596
Change-Id: Ife19657b7e0701a0e0dc10806e230bd1744a20aa
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-08-10 11:14:39 +00:00
David Schulz
5db3d507dd Revert "CMake: Reload item data on CMake executable path changed"
057bb3095 makes it impossible to type in dir separators and so a valid
path to a cmake executable in the Path field of the cmake settings page.

This reverts commit 057bb3095b.

Change-Id: I3edbdced8eaac15f34ca43acf1e86f4be6cd9be7
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2022-08-10 10:12:38 +00:00
Alessandro Portale
52b8b51b32 ScxmlEditor: Prevent crash
Create the connection after populating the combobox prevents an
assertion.

Change-Id: I35be1cf724ed7084123e7070b377b50274132e55
Reviewed-by: hjk <hjk@qt.io>
2022-08-10 07:56:26 +00:00
Marco Bubke
c13e2b89f5 QmlDesigner: Add type enumeration to auxiliary data
Auxiliary data so far used naming conventions to declare the kind of the
data. Now an enumeration is used. The auxiliaryData(...) is returning an
optional too so that it is known if a value exists. There is now
auxiliaryDataWithDefault(...) which is returning an invalid
QVariant instead.

The instance cache is now disabled because there is not notification for
information changes. So if we get the real data from the node instances
there will be no information changes because nothing changed. So the
form editor is a strange state of being reset but not all data
arrived. Before this patch there were still changes happen because of
some side effects that auxiliary properties were sent which were never
intended to be sent. If we re-enable the cache we need to send
information changes or every view must expect that the information is
already there.

Task-number: QDS-7338
Change-Id: I0cafd149c53df552c7c8442f1e8ba87f5451dbd1
Reviewed-by: Aleksei German <aleksei.german@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-08-09 17:52:03 +00:00
Marco Bubke
fb7c814a3b QmlDesigner: Fix flacky tests
Change-Id: If6de687acc678d925c62d73d631ed081bfcaa8fa
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-08-09 12:03:25 +00:00
Marco Bubke
770bad3f2c Sqlite: Add error code for strict tables
Change-Id: I98ea3282c205c1da840e71df74c4eb7d7e73ec98
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2022-08-09 11:48:44 +00:00
Christian Kandeler
c86d61846d CppEditor: Speed up signal/slot check
Do the look-up only after the cheaper checks have succeeded.
Amends 0087bd492f.

Fixes: QTCREATORBUG-28035
Change-Id: I250588d3fa1a763e87452c6decb0aa7517076024
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jean-Michaël Celerier <jeanmichael.celerier@gmail.com>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-08-09 10:33:51 +00:00
Christian Kandeler
ff2235bd5d CppEditor: Add missing hyphen before option names
Amends 06e2f8d8fa.

Change-Id: I514f04ce21b91c80dc15d1e0323b2d80df08aeb5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Hannes Domani <ssbssa@yahoo.de>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-08-09 10:33:10 +00:00
hjk
a356ccd0ad ProjectExplorer: Use LayoutBuilder for session management
Change-Id: I18de9933c52b147c7c2bd1f75852531e787937d8
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-08-09 10:31:04 +00:00
Artem Sokolovskii
176c3906fe ClangFormat: Fix ignoring DisableFormat option
Task-number: QTCREATORBUG-27261
Change-Id: Ib9671f5c4499a39eb40e2a269dc73328fa5ad12f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-08-09 09:01:54 +00:00
David Schulz
b732801d6a Update changelog for 8.0.1
Change-Id: Ib1116deb89c092f66a79d1332919ebc73d33ec2a
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-08-09 06:46:00 +00:00
David Schulz
9fe3aa6612 Python: Fix detecting python ls for reopened files
Change-Id: Icc601fa43c7b1432d0bf12fae2f65e0c914262ac
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-08-08 11:30:03 +00:00
Christian Stenger
100f51ff50 Tests: Fix android autotest
While at it add qbs build files.

Change-Id: I2a57f7addda9e980a9e429a3d69e0994dac6d120
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-08-08 11:18:09 +00:00
Christian Stenger
07053b3a26 Squish: Write server config changes
Change-Id: I74242e88b9a7ba7b2c6f815efc1dd4e8cdca9df1
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-08-08 08:48:56 +00:00
Christian Stenger
adb10e907e Squish: Allow modification of server settings
Implements ui interaction for mapped AUTs, AUT paths
and attachable AUTs.
Modified data is not yet written back to the server config.

Change-Id: Id6661efd990f1744b61b763c5654d1bee7145b5e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-08-08 08:48:49 +00:00
David Schulz
b6d7d9803e Editor: remove the unused group from some settings
Change-Id: Ia5677247a66e8589bdd045304603bd2971b572bd
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-08-08 06:01:12 +00:00
Alexander Akulich
88eda2322b BuildEnvironmentWidget: Override 'Open Terminal' func to open build dir
If the user is opening a terminal in the build environment then probably
the intention is to do something in the build dir rather than in the home dir.

Also, most shells/terminals have a shortcut to go to the home dir but they
have no idea about the build dir so it is much harder to get there.

Change-Id: Ia259def7a4915fe86370fc183fb1e38ef6644c4d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-08-06 11:16:41 +00:00
hjk
c6ff62b299 VcsBase: inline cleandialog.ui
Change-Id: I197b3681559a2a42d5fe614840e0a61ed629dbbb
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-08-05 14:59:56 +00:00
hjk
39e38bfdff ProjectExplorer: inline customparserconfigdialog.ui
Also fix label buddies on the "Warning" page.

Change-Id: If2f62021fe0f5820ea23a49f6235065dbe17126c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-08-05 13:32:53 +00:00
hjk
ffcf85958f Git: inline changeselectiondialog.ui
Change-Id: I7f4758119623559cec4f1b91a305d3ad55fe55dc
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-08-05 13:15:35 +00:00
Christian Stenger
391f72ad57 Git: Fix extra token
Amends 9ad5c4254d.

Change-Id: Iaa72752449df47e745d4fb2f0fae693228a5c047
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-08-05 13:12:40 +00:00
hjk
031bf8d3a4 ClangFormat: Inline *.ui files
Change-Id: Ie6bcb486c70896894121434b1030861b029a46a2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-08-05 11:55:28 +00:00
hjk
7070e89904 Git: inline remote*.ui
Change-Id: Idb394e69d3976877d091a5cf65a3babfbafe9e6b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-08-05 11:52:14 +00:00
hjk
9ad5c4254d Git: inline gitsubmitpanel.ui
Change-Id: Ib6ba5a6c44d413a13300a28ffb575db5799a9927
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-08-05 11:52:10 +00:00
Orgad Shaneh
332f35d864 BinEditor: Support character encodings for the text part
Change-Id: I853b5b5c4c4d523033319169e80e6f9063360c17
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-08-05 11:27:45 +00:00
Christian Kandeler
892448753c Update qbs submodule to HEAD of 1.23 branch
Change-Id: I5266c606a254638cfa5440a77043d6f36c49921a
Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-08-05 11:06:49 +00:00
hjk
24822f96ae Git: inline stashdialog.ui
Change-Id: I3665fcf7622c45d1aef3dacae936252a4f73d32f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-08-05 09:57:08 +00:00
hjk
4cf40b2456 Git: inline branchcheckoutdialog.ui
Change-Id: I105f63dd7ae0110ecb0afbd13ff70027fb9431b1
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-08-05 09:56:55 +00:00
Artem Sokolovskii
e572bdd90c ClangFormat: Move global settings in main page
The settings: indenting instead formatting, format while
typing, format edited on file save are moved to Code Style
page.

Change-Id: I28787b44602ce288961c778fe704ad2a1a05913f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-08-05 09:41:14 +00:00
Dmitry Kovalev
a338699c4c BareMetal: Fix bug when cloning jLink gdb server provider
Change-Id: I5d5a957aaa25238a6d05462c6a8f40b660ca7ea0
Reviewed-by: hjk <hjk@qt.io>
2022-08-05 09:15:44 +00:00
Christian Kandeler
e24591dbe5 ClangCodeModel: Move memory usage widget to its own set of files
Change-Id: Iaeb449a12a11e46e8ce03556c699fff4ffceffc5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-08-05 08:47:59 +00:00
hjk
ed8c775def Merge remote-tracking branch 'origin/8.0'
Change-Id: Icbb87ac8bcee5fb86042d3863a973573510651b4
2022-08-05 08:50:27 +02:00
Marcus Tillmanns
0da5ade118 Meson: Skip tests if meson is not installed
Change-Id: I118e687ff69c264e64e8a018ef6aa131f26463c6
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-08-05 06:44:31 +00:00
David Schulz
a6e545fa53 ClangCodeModel: connect completion result count settings
And return the current settings from the clangd settings widget.

Change-Id: I93455b077bbe0ec1aeb9dfa567b8559bfbb5dfe6
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-08-05 04:53:31 +00:00
David Schulz
5d85c4dbdf ClangCodeModel: fix diagnostic settings link
Link the diagnostic configuration action of a tooltip against the clangd
code model settings page.

Change-Id: I367bda11f1d360ef4a0b686229c7466678cbb803
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-08-05 04:39:53 +00:00
hjk
f7a087ce7a QmlPuppet: Compile fix
Change-Id: I4ff0fd46d8e0f2c00857de2b8f6d99a502d2675f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2022-08-04 15:42:19 +00:00
hjk
0a1edae9de LSP: Use char16_t literals for keys into json objects
Allows use of QStringView based QJson* functions.

Change-Id: I6f39306652bea3abecdcf9e1d4ae494a6b9101c7
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-08-04 13:07:33 +00:00
hjk
d2a205c74c Git: inline gerritdialog.ui
Change-Id: Idefdd93a80ac87b9798bf2654413a5c78882b391
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-08-04 12:59:59 +00:00
hjk
c68f901aa8 TextMark: Delay context menu tooltip action creation
Change-Id: I25bad9a774a6d95162251c8f0512eb3f8439d9ae
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-08-04 12:58:12 +00:00
hjk
03035feac3 Git: inline branchadddialog.h
Change-Id: I8919f69bfdfd670855167bace62fb55603595270
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-08-04 12:57:49 +00:00
hjk
d3ea90ec20 Utils: Cache the last QIcon created from a Utils::Icon
This rarely changes, but was re-computed/re-painted for each
text mark etc.

Change-Id: I9f4b0f2f2a88f0a267ecdd0faa983677eb634751
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-08-04 12:50:28 +00:00
Knud Dollereder
371d9ffe0f Fix a wrong property conversion
QVariant::canConvert returns just the general ability to
convert from one type to the other and does not reflect
if the specific string inside the variant can be converted.
For this reason tmp.canConvert(QMetaType::Double) returned
always true which lead to colors inside keyframes becoming
black as soon as the scene was saved.

Fixes: QDS-6960
Change-Id: I1a267d93a7cffb080ae884df490e5723592a2780
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Aleksei German <aleksei.german@qt.io>
2022-08-04 12:47:26 +00:00
Christian Kandeler
321fae46f6 LanguageClient: Support limit parameter for completion request
... and make use of it in the ClangCodeModel tests.

Change-Id: Ib2186273aec1db9b354892c2e1c4ebd82e3c1c96
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-08-04 12:05:18 +00:00
Christian Kandeler
038835b024 ClangCodeModel: Remove redundant clangd version check
This was forgotten in 780f89b377.

Change-Id: I645e96bafcb2d431e74a7f203e911bbb062fb747
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-08-04 12:04:59 +00:00
Christian Kandeler
364208d202 ClangCodeModel: Move finding local references to a dedicated class
Change-Id: I5be08b58f4481df462f0ec664687a2c9f141f8b6
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-08-04 11:44:19 +00:00
Marcus Tillmanns
e1b0b47efc filepath: Adds m_root to store root part of path
Change-Id: I9e32a2806e9ecd231886749357404b4bf94bef10
Reviewed-by: hjk <hjk@qt.io>
2022-08-04 11:34:34 +00:00
Marcus Tillmanns
04205d1225 FileUtils: Adds toFilePathList function
Change-Id: Ie3137751135fdb6c3161cc886f307323fcce6b72
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-08-04 11:33:53 +00:00