Commit Graph

82571 Commits

Author SHA1 Message Date
Jarek Kobus
3970a834bc Valgrind: Replace global toolTipForFrame() with Frame::toolTip()
Change-Id: I66cc481d588c468b9388e3b3863ed35aab406fa2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-08-08 15:10:47 +00:00
hjk
bb6c26cac9 QtSuppoer: De-O_OBJECT-ify QScxmlGenerator
Change-Id: I2732aaf838144d6da4c0b51bdfc2c8bb6cc8e21b
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-08-08 14:30:17 +00:00
Artem Sokolovskii
1836b50f5d DAP: Separate CMake and Gdb logic in DAP engine
This commit refactors the Debug Adapter Protocol (DAP) engine
to separate the logic for CMake-based projects and Gdb-based
debugging.

- Moved CMake-specific code to a new CMakeDAPEngine class
- Moved Gdb-specific code to a new GdbDAPEngine class

Change-Id: Ia616e7b7ea2ff2071bcadd26b28b620f9aca6ac4
Reviewed-by: hjk <hjk@qt.io>
2023-08-08 14:15:30 +00:00
Artem Sokolovskii
8fcf3a695f DAP: Fix windows support
- Added using named pipe for windows

Change-Id: I45561481d63c5dd81bda14e6ace4fb0374d1b488
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-08-08 13:20:14 +00:00
hjk
f3e1aece83 QtSupport: De-Q_OBJECT-ify UicGenerator
Change-Id: I6934fc1553b2f32e042aef0c8a0141fee93a52cd
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-08-08 13:20:06 +00:00
Marcus Tillmanns
31f7ed44b6 FilePath: Use isSameDevice
Some places compared the scheme and host of a filepath to
decide whether its the same device. This is incorrect and
leads to false negatives. isSameDevice is the correct way
to decide whether two paths are from the same device.

Fixes: QTCREATORBUG-29474
Change-Id: Iced8f434dadb931f6595f47f95647b341c48d3aa
Reviewed-by: hjk <hjk@qt.io>
2023-08-08 13:19:35 +00:00
Christian Kandeler
b92ac9a941 TextEditor: Introduce a per-project variant of the comments settings
These settings can clearly differ per project.
Note that the classes have to live in the ProjectExplorer plugin, which
has a (questionable) dependency on TextEditor.

Change-Id: I7e3816da30cecd1ccb66549a2226b44dc0a26cb4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-08-08 12:50:58 +00:00
Jarek Kobus
468a08bb2b DirectoryFilter: Set future synchronizer for the async recipe task
Change-Id: I2c337f35b818e4c1748e34a2479dc21f66bd50de
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-08-08 12:50:55 +00:00
hjk
f65b343c8a Utils: Allow (encoded) colons in host parts of FilePath
Change-Id: I6acd8ac8ab44cb895cc08ce6b1972802f79a2a53
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-08 12:16:32 +00:00
hjk
f09b61651e Utils: Approach aspect update signalling more systematicly
This was pretty much ad-hoc so far. Now do the actual value proliferation
inside the aspect first and collect information on what changed. Signal
changes in the end centrally. At that time the aspect internal state is
consistent again.

Additional design desision implemented here: setDefaultValue and
fromMap/readSetting do _not_ signal, user code with unusual needs
has to check on its own.

Change-Id: I1e46282558e014f51933d1044a72bf5c67437ec5
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-08 12:06:16 +00:00
hjk
d7d7b4bbca Terminal: Compile with Qt 6.2.x
Change-Id: Id98d6073205b2d40fe114e66e2bac65e1a628cdc
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Mehdi Salem
2023-08-08 12:05:34 +00:00
Christian Kandeler
45f4ea6da5 CppEditor: Pass CommentsSettings into DoxygenGenerator
... instead of forwarding each member separately.

Change-Id: I0639cc81716df70e8f286cb4b5f02554e1f56b95
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-08-08 11:58:35 +00:00
Christian Kandeler
68c76e072d CppEditor: De-obfuscate DoxygenGenerator
- m_startComment was always false.
- One of the two public generate() functions is an internal helper.

Change-Id: I03a860bf7f44aab8f98c5656bc2b36f9fe5e1ef2
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-08-08 10:50:38 +00:00
Jarek Kobus
c6587de684 QmlProjectManager: Get rid of foreach
Change-Id: Iab2933ac8cf06c81d667ab94a26b86241a3a0c24
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-08 10:03:17 +00:00
Artem Sokolovskii
8b0b190b49 DAP: Fix breakpoint behavior
Before adding and removing breakpoints when debugging is running
didn't work for cmake debugging. Fixes that.

Change-Id: I59fd4ec3905365647b552753bc06da855e83ac7c
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-08 09:39:26 +00:00
Jarek Kobus
7e572841f7 Valgrind: Make tool name hash static
Change-Id: I326c45e1be293dc5066271839b26b7f22d53eabb
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-08 09:28:43 +00:00
Jarek Kobus
fbb06f1a02 ToolChain: Introduce asGccToolChain()
Instead of downcasting by qobject_cast.

Change-Id: If868a41eb6233e18e0ea96441001fe02b5f3090e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-08-08 09:24:33 +00:00
Jarek Kobus
ec53435e04 ThreadedParser: Simplify implementation
Get rid of unused errorString().
Remove pimpl and keep the QPointer to the Thread.

Change-Id: I6398d35b4df17b548ff06185fe516d0d19ed9bc0
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-08 09:24:26 +00:00
Jarek Kobus
94f4c21740 ValgrindMemcheckParserTest: Fix const correctness
Simplify list c'tors.

Change-Id: Ib2534acfda1e0b24d8cfd10c7f48b585c881929a
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-08 09:23:32 +00:00
Jarek Kobus
fbf9325395 ValgrindPlugin: Use QList instead of QVector
Change-Id: Ib1bd223b73d1f7399008f91a3c26ff515ab03a0c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-08 09:23:25 +00:00
Jarek Kobus
00a34e60fc Valgrind test: Hide Recorder and Dumper in cpp file
Inline Recorder's and Dumper's slots.
Clean some namespace specifiers.

Change-Id: I1111e8fb3c912dc1f253ebb2ed7f8e9c3fff67e0
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-08-08 09:23:15 +00:00
Jarek Kobus
91f01c17f9 ValgrindRunner: Hide ThreadedParser
Expose its signals instead.

Change-Id: I0daeb2e510c30678f4f13d880bc8108510c4f32e
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-08 09:23:08 +00:00
Jarek Kobus
43dca6ec78 ThreadedParser: Remove unused signals
Change-Id: Ib158902f9d433cc48bdba58aa6b685aa7d41f5b4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-08-08 09:22:57 +00:00
Jarek Kobus
4e56305a01 MemcheckToolRunner: Remove unused suppressionCount() signal
Change-Id: I887f4bf9f373da07389e84bf62829a17debc103d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-08-08 09:22:49 +00:00
Christian Kandeler
099fe7d5d1 CppEditor: Let users fold/unfold all comment blocks
Fixes: QTCREATORBUG-2449
Change-Id: Ib090f1bb0d0866f14ddb6dfb10bf2ff2563585e0
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-08-08 08:52:55 +00:00
Christian Kandeler
f93836b25d CppEditor: Add quickfix for converting comments from C++ to C style
... and vice versa.

Fixes: QTCREATORBUG-27501
Change-Id: I8584cc1e86718b3fe0f0ead2a3436495303ca3c8
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-08-08 07:33:41 +00:00
The Qt Project
d201899a0a Merge "Merge remote-tracking branch 'origin/11.0'" 2023-08-08 06:35:47 +00:00
Marcus Tillmanns
7a8c4adf95 Utils: Don't complain about non-existing devices
FilePath::exists() does not need to warn if the device does not exist.

Change-Id: I2ce6a5dec8806a8ee0a2f0e53a2c556c1d8c9e5b
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-08-08 06:29:39 +00:00
David Schulz
0ece08c9dc Merge remote-tracking branch 'origin/11.0'
Change-Id: Iad820911996f8daff6ce63b4f0267bd15d35d176
2023-08-08 07:34:26 +02:00
Jarek Kobus
66929b96a4 Debugger test: Get rid of foreach
Change-Id: Ia3414cffe9b88cfb5abbdd24eda5c36aa163c4f9
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-07 12:42:16 +00:00
Jarek Kobus
33d628f111 PerfParser: Update the tool
Change-Id: Ie79c28b39f62af91843106bc1e312d6be27ba9cf
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-08-07 12:26:34 +00:00
hjk
cb6a5f6119 Ios: Merge settings page related file pairs [2/2]
Rename *settingswidget* into *settingspage*.

Change-Id: Ib635ed0dc8b7d2bf3979977e89206b194b116d47
Reviewed-by: hjk <hjk@qt.io>
2023-08-07 09:55:04 +00:00
Christian Kandeler
e421ca97a1 TextEditor: Introduce dedicated comments settings page
We will soon add more comments settings.

Change-Id: I91798b9d1071acefda70db523dcc72fdc2480cd7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-08-07 08:38:59 +00:00
hjk
68fbfe671c Ios: Merge settings page related file pairs [1/2]
Move all to *widget.cpp, to keep the diff small.

Will be renamed in step #2 to *page.cpp again.

Change-Id: I391e4c823d796f5af0970067642e1b3eaec2637e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-08-07 08:38:07 +00:00
hjk
2c56fa8084 Autotest: Hide TestNavigationWidget implementation
Also, de-Q_OBJECT-ify.

Change-Id: I6e527bb36e9f38a702604f9c6c3923e62bf921c9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-08-07 08:24:07 +00:00
hjk
bf5296292a Utils: Rename LabelPlacement::AtCheckBoxWithoutDummyLabel to Compact
In BoolAspect. Felt a bit too descriptive by now.

Change-Id: I0cf2eb88576da3d3741d146a8274cf8a85bc7c83
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-07 08:22:00 +00:00
Andre Hartmann
7946abce35 Texteditor: Fix clazy-strict-iterators warning
In line 860: `list.insert(it, elem);`

  textdocumentlayout.cpp:860:17: Mixing iterators with
  const_iterators [clazy-strict-iterators]

Change-Id: I2a9413552a6060157efcea79f274fee11086d34e
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-08-07 06:11:39 +00:00
Orgad Shaneh
467d94b7f4 TextEditor: Fix compilation without tests
Amends 66d49e6a53.

Change-Id: I09acb6d7e2aaf94cbf09242b7199ef5922f3e510
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-08-07 04:51:11 +00:00
Jarek Kobus
f0e7ab6228 UnixPtyProcess: Get rid of foreach
Change-Id: I9ca9092c874960e63d6a29bcd11181bb571c3615
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-04 18:03:17 +00:00
Alessandro Portale
1112705619 ClangFormat: Mention generator script in header warning
Change-Id: Iaaeb7b35088e0f9e3e724aaca161894b8fee6ffb
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-08-04 15:48:23 +00:00
Cristian Adam
c4e15769ec CMakePM: Fix AUTOUIC ui_header.h file code completion
The wrong header was reported to the extraCompiler when AUTOUIC was set.

Fixes: QTCREATORBUG-28787
Change-Id: I92d37e56ee5e45229545184e4f4911764834ed67
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-08-04 15:29:25 +00:00
Jarek Kobus
351c2cc463 FossilPlugin: Drop namespace specifiers
Remove some unused headers.

Change-Id: Ied6c6994604d567503b00bfb9e822e8e3784cca6
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-08-04 13:36:08 +00:00
Eike Ziller
0d15b4cded Merge remote-tracking branch 'origin/11.0'
Change-Id: Ibe5040142ca38fed77ffed163212baf22592e392
2023-08-04 14:57:29 +02:00
Tasuku Suzuki
4d5752edc4 RunControl: Revert reject button's text to keep apps running
Previously, when a user attempted to switch sessions or quit Qt Creator,
a dialog would appear asking whether to continue running the current app.
The options were:
- Force Quit
- Keep Running

However, in Qt Creator 10, the 'Keep Running' button was mislabelled as 'Cancel',
which does not accurately represent its function.
This commit corrects this issue by reverting the button's text back to 'Keep Running'.

Change-Id: Ic48648baf6b166907d986d58e827cb52adfd551c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-04 12:31:38 +00:00
David Schulz
66d49e6a53 TextEditor: Fix crash on reloading the document
as part of the reload operation we set the document to nullptr inside
TextBlockUserData::documentClosing, but we do not remove the mark from
the marks cache. So when a text mark gets deleted while a document is
reloaded the mark does not get readded to the document, but it wont get
removed from the marks cache inside the document either, so we have to
manually make sure the mark is removed from the cache in this situation.

Fixes: QTCREATORBUG-29432
Change-Id: I3ae4182c4d2bbd3426c1d7a60275d21ac20ea99a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-08-04 11:20:18 +00:00
Jarek Kobus
8d554aba1a FossilPlugin: Fix revertCurrentFile()
We didn't mean to execute empty dialog, but RevertDialog.
Add RevertDialog::revision() helper.

Amends 521a23df6e

Change-Id: I4c27baa0d5b2a9360048fd90e4feb1759c6363df
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-08-04 10:33:47 +00:00
Jarek Kobus
f313c5538f Android: Simplify return statements
Change-Id: I100b16a1fd74c4528f61f681bbeb5cdb4adddee5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-08-04 09:52:39 +00:00
Jarek Kobus
8819034e04 tst_dumpers: Verify that debugger has started OK
Change-Id: Icb2c9ff2f56ac959ce3b87ff333a9f58fd146464
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-08-04 09:51:27 +00:00
Marcus Tillmanns
fa753a69de Terminal: Support focus reports
Change-Id: If1e81b87b9c05c657453c9dbb51f82217d29a61d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-08-04 09:27:11 +00:00
Marcus Tillmanns
f2f0e420b0 libvterm: Update to 0.3.3
See also: https://bazaar.launchpad.net/~libvterm/libvterm/trunk/revision/839?compare_revid=829

Change-Id: Ifbee08cfb5cbc1ebfa61e3a70daf751a7a798a5b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-08-04 09:25:59 +00:00