Commit Graph

68765 Commits

Author SHA1 Message Date
hjk
b03808031a VcsBase: Use functor for apply in CommonSettingsWidget
More compact.

Change-Id: Ib5985b9aa6fb9fcbe9ff1fffdc17c6c0888f786e
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-05-08 11:20:26 +00:00
David Schulz
06b0d105dc Editor: simplify font to display options page connection
Operating on saved settings is less error prone and easier to maintain.

Change-Id: I92e3a6b52296cddc302ba2e4410edfd243b8ad32
Reviewed-by: hjk <hjk@qt.io>
2023-05-08 11:20:24 +00:00
Marco Bubke
5b9950c5d0 QmlDesigner: Make meta info system mockable
Using the projectstorage mechanism we introduce a flag for the test, so
we can use ProjectStorageInterface instead of ProjectStorage. It has the
overhead of a virtual function interface but for the test that is
neglectable. In the test we can now use a project storage mock to
emulate the meta info system. Later we could use a pregenerated database
file to create a fake project storage.

Task-number: QDS-9766
Change-Id: I16efa28bc4b12181941adecc132084157156daec
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-05-08 11:18:15 +00:00
Thomas Hartmann
2ee225b037 QmlDesigner: fix hardcoded types for Qt 6.5.1
Task-number: QDS-9737
Change-Id: I286d706b506904b4d6f22549d1ec294d16859df0
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-05-08 11:09:55 +00:00
Miikka Heikkinen
1fd124bc27 QmlDesigner: Fix unused warning
Change-Id: I352346308c1c150a8309b25e9d8f74c6aadaa146
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-05-08 11:09:29 +00:00
Marco Bubke
32f84fc05a QmlDesigner: Move Version to different namespace
We want to use it not only for synchronization.

Task-number: QDS-9766
Change-Id: I26a2ade8203d9c5131e8dec101885434713f8252
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-05-08 10:52:20 +00:00
Marco Bubke
c1c90ebd1c QmlDesigner: Use fully qualified namespace
There can be ambiguities with other Utils namespaces.

Change-Id: I84c79fd380115160dd6070f67cb80ccf00c20ca5
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-05-08 10:42:34 +00:00
Eike Ziller
5cb0a56296 Markdown: Delay update of preview
Delay the update: The implementation in Qt is currently very slow, and
while we don't have a fix, editing with immediate update is very
sluggish.

Also do not update the preview, if it isn't visible.

Change-Id: I35e10af232064b02a36a8be3758ea0bbc5b66f40
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-05-08 10:36:19 +00:00
hjk
ce00785efb Core: De-QObject-ify bits of mime settings
Change-Id: Ib4ffabe6392b5923cb6cce596e3e3563c9d6b7a3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-08 10:00:41 +00:00
David Schulz
0e4a7d5207 Utils: Avoid watching directories of watched files
Do not watch directories unconditionally, but only if they contain
removed files to check whether those files are readded. This should
reduce the number of needlesly watched directories to a minimum and fix
performance regressions introduced by
61598eca15.

Fixes: QTCREATORBUG-28957
Change-Id: I8fe387e7de32b0fb585074330c7f6ca7eae44730
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2023-05-08 09:39:21 +00:00
hjk
a7277bfb20 UpdateInfo: Remove now unused Q_OBJECT from SettingsPage
Change-Id: If5ff4d37816089114d952af934d0dd6fe4acb70a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-08 09:15:35 +00:00
hjk
0f10c6df33 TextEditor: Remove now unused Q_OBJECT from BehaviorSettingsPage
Change-Id: I0919200ddc8bb8b4547316c0af68f5aafa5d4892
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-05-08 09:15:27 +00:00
hjk
ed4c936cfc Core: Remove unused Q_OBJECT from LocatorSettings page
Change-Id: I75698496ebaa13284cb0d134aa313f608d7b7edd
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-08 08:58:56 +00:00
hjk
cd06a608db Autotest: Move update connection from GTestSettingsPage
... to GTestSettings to prepare for removing the QObject base
of IOptionsPage.

Change-Id: I2d6f78e4f2a1d3690860c40b4ab55008034457a9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-05-08 08:51:07 +00:00
hjk
0faed9dda4 QmlDesigner: Remove unused PuppetBuildProgressDialog
Change-Id: Id2e9da8c4fea128105cefe37d3c99ca5537d3acf
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-05-08 08:45:03 +00:00
hjk
fb5efd01b5 LanguageClient: Explicitly qualify one QObject::connect
Not needed currently but will be once an IOptionPage loses its
QObject base dependency.

Change-Id: Ide7de1a34ff62c32d63a77040e9ec59bb42e3c40
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-05-08 08:44:48 +00:00
hjk
deec92b631 Debugger: Don't put option page into the central object pool
Apparently not used anymore.

Change-Id: Ie73e09aad04574460221ffaff0c4e6cfe50873e6
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-05-08 08:14:12 +00:00
Eike Ziller
e56e3b6f37 FakeVim: Fix build with Qt 6.6
The connect doesn't work with incomplete type FakeVimHandler::Private
anymore, so move the code.

Change-Id: I686cd19a985f965cebf7d0a927cff4dc80ae746d
Reviewed-by: hjk <hjk@qt.io>
2023-05-08 07:50:29 +00:00
David Schulz
78fe0c315e Debugger: fix vanishing editor tooltip on expand
fetchMore is called multiple times before expandNode and seems to
invalidate the index that is passed to expandNode. Since we only need to
fetch more when we want to expand the item we might as well just
integrate the code of fetch more into expandNode.

Fixes: QTCREATORBUG-29083
Change-Id: I0e60e9bb03b53de2e86eea232fb5bb98046bbb80
Reviewed-by: hjk <hjk@qt.io>
2023-05-08 07:46:00 +00:00
Semih Yavuz
cd73f8c6b8 qmljsreformatter: don't default foreach type to "in"
Fixes: QTCREATORBUG-29123
Change-Id: I4d3a611c359946c4483388cbf18a0b6f16d0a8d6
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-05-08 07:39:26 +00:00
Jarek Kobus
c879aeb565 SearchResultItem: Introduce SearchResultItems
And reuse it.

Change-Id: Ia052297340f2bf2478fbfdb2427b45e30bd9d067
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-05-08 06:41:41 +00:00
Jarek Kobus
8b3aa900da Utils: Move SearchResultItem/Color into Utils
It's going to be reused inside FileSearch.

Change-Id: I8993d7158ff31c311c2283d32bc43465a8946a52
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-08 06:41:27 +00:00
Orgad Shaneh
2c61eac1cb Git: Change default shortcuts for "Current Project" to Repository
Current Project is misleading. Current Repository refers to the
repository of the current file, which is much more expected for
"everything around" actions (Diff, Log).

Task-number: QTCREATORBUG-10170
Change-Id: I252f40cd3dfd9de184a889355b59f91bb64983dd
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-08 06:29:59 +00:00
Marcus Tillmanns
6aa02fe804 Utils: Combine startStubProcess parameters
Change-Id: Ic0515a3864687494bd1e280a82b91a5bafef46b1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-05-08 06:24:00 +00:00
Samuel Ghinet
2bf16bd692 QmlDesigner: Fix crash upon creation of wizard
Task-number: QDS-9532
Change-Id: I2ce4e6e9597798a023c626c6b8e5dee6a1570e03
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-05-08 01:42:19 +00:00
Samuel Ghinet
4f11fae460 QmlDesigner: Fix crash in FileExtractor when compressed size is 0
Task-number: QDS-9832
Change-Id: Ia096b5770359ea16171cae0634fea340264194e1
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-05-08 01:40:47 +00:00
Samuel Ghinet
524f45f566 QmlDesigner: Fix crash at filtering the Style Model in QDS new dialog
Task-number: QDS-9731
Change-Id: Iac64d109fa125f67ab3e713e07ebbc3e519d5ac5
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-05-08 01:37:04 +00:00
Jarek Kobus
ca1e0dae56 Utils: Introduce QTC_SCOPED_TIMER()
QTC_SCOPED_TIMER() is a handly debug tool that measures
the time spent in a block of code. It starts measuring the time
when the line where it was placed is reached, and stops measuring
the time when the current invocation exits the block in which it
was placed (i.e. when QTC_SCOPED_TIMER() goes out of scope).

The QTC_SCOPED_TIMER does two printouts:
1. When it starts - it prints the current time, filename and
   line number.
2. When it ends - it prints the current time, filename,
   line number and the timeout in ms.

The QTC_SCOPED_TIMER() was added into qtcassert.h file on
purpose, as this file is included already in most of the
codebase. In this way, when it needs to be used, it's enough
to add a QTC_SCOPED_TIMER() without adding extra #include.

Example use case, after adding the "QTC_SCOPED_TIMER()" into
ProjectExplorerPlugin::initialize() as a first line:
SCOPED TIMER [14:46:57.959] in [_long_path_here_]/
projectexplorer.cpp:823 started
SCOPED TIMER [14:46:58.087] in [_long_path_here_]/
projectexplorer.cpp:823 stopped with timeout: 127ms

Change-Id: Iaed3f297c8aeb6e90dd9909e76fc9933599a39b6
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-05-05 18:14:22 +00:00
Alessandro Portale
1e1befd9eb Proliferate pathListSeparator()
Change-Id: I546107af6a88ad5901659a0a64485e4ebca3a164
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-05-05 15:17:10 +00:00
hjk
62f3d29be4 Layouting: Introduce Ids for Items
Intenally just wrapping a 'bindTo' result, but less trigger potential
for pointer related peladophobia

Change-Id: I25171a2675fb0474ce97c04552ac1cf5ffd6ee56
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2023-05-05 15:08:23 +00:00
hjk
7581dcd369 FakeVim: More compact settings page implementation
Change-Id: Iaca48e8a22f26817442dbf5147f318868dbd1f34
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-05-05 14:29:13 +00:00
Jarek Kobus
fb50e35db9 FilePath: Fix hash function
For better performance, include also the scheme and host in qHash
calculation.

Change-Id: I2a69a128597429b88a71943d248ce038b49285f2
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-05-05 13:40:31 +00:00
hjk
652e99830f Layouting: Add some support for spin boxes
Change-Id: I5eff963cf605f5239a96daee924e91b2c170f506
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-05-05 13:08:40 +00:00
hjk
9106a6e662 Nim: Normalize somewhat unusal ctor/dtor split
Change-Id: I65e6fac252c068b11c45d06bcbcbc08c9316a528
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-05-05 13:08:26 +00:00
hjk
2fa375671a Android: Use LayoutBuilder in AndroidDeployQtStep
Change-Id: I855227bffa18aef5d547510a9c447071527ddcba
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-05-05 13:08:17 +00:00
Jarek Kobus
abce79939a Tests: Rename tst_QtcProcess -> tst_Process
Follows 470c95c94b

Change-Id: Ie26b5677d28e645ab27aeebf5976b5507385716a
Reviewed-by: hjk <hjk@qt.io>
2023-05-05 12:35:50 +00:00
hjk
34a3852efc Haskell: Compactify option page implementation a bit
Change-Id: I1aa765e47ae60a4b4e47888bf8f0d5dfd1ec23cc
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-05-05 12:15:54 +00:00
Eike Ziller
302afcdfc7 Markdown: Fix focus handling
When the markdown editor is opened or switched to, the focus is set on
the editor widget. We don't want the focus on the splitter, but on
either the text editor or the preview, depending on what had focus
before.

Change-Id: Ib54899c6251f2c5362f95d990e7150b6fee0f1e1
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-05-05 12:05:42 +00:00
hjk
1c34fc7bca Layouting: Fix advancing by empty cells
Change-Id: I404e80e98a8fa53e174a8a372b82e17e8187a52c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-05-05 11:59:06 +00:00
Alessandro Portale
5943152f65 Android: Remove CheckableMessageBox::shouldAskAgain check
Most likely, that was checked in addition to InfoBar::canInfoBeAdded in
order to be settings compatible with QtC versions prior to the migration
from CheckableMessageBox to InfoBar. But that is at this point 4 Years
ago, and should be removed because it causes confusion when reading the
code.

Change-Id: I76ae6a9ed0c8f9f7fa20b64090d89724588511ed
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-05-05 11:51:40 +00:00
Alessandro Portale
4d2632c3fa Toolbars: various toolbar layout tweaks
This makes sure that toolbutton sizes and spacings are correct in all
toolbar layout modes.

Task-number: QTCREATORBUG-29082
Change-Id: If2aad74b77c0b8dcda81478e3d345c783584cec4
Reviewed-by: hjk <hjk@qt.io>
2023-05-05 11:36:52 +00:00
Alessandro Portale
09a58ddd12 Tracing: Follow the active toolbar style
This makes sure that the toolbar and toolbuttons in the trace resemble
the look of the widget based UI in compact and relaxed toolbar style.

This comes with the restriction that an already open tracing scene does
only adapt to that change after an IDE restart.

Task-number: QTCREATORBUG-29082
Change-Id: I6422227256d8e13658ff5565ae640e15c5e61229
Reviewed-by: hjk <hjk@qt.io>
2023-05-05 11:36:44 +00:00
Alessandro Portale
0430aaeac8 Core: Center the arrows on the OutputPaneManageButton
Calculate the positions, instead of fixed coordinates.

Task-number: QTCREATORBUG-29082
Change-Id: Iaf7ac9598bfd031a62222520be16d24652e2798c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-05-05 11:36:32 +00:00
Alessandro Portale
02637390fa ManhattanStyle: Draw round rectangles in "Relaxed toolbar style"
Task-number: QTCREATORBUG-29054
Change-Id: Ic06ddfec87fd9b43c88b3a7dfb9946c3a8b22c60
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-05-05 11:36:25 +00:00
Alessandro Portale
495f5f006f Utils: Add toolbarStyle to StyleHelper
Task-number: QTCREATORBUG-29054
Change-Id: I01572eb7bdd267ea6aadb9530afc52b3c7834382
Reviewed-by: hjk <hjk@qt.io>
2023-05-05 11:36:06 +00:00
Alessandro Portale
2e9494bd71 Core: Add "Toolbar Style" ComboBox to General settings
Stores the style as int under General/ToolbarStyle. ManhattanStyle
restores the setting on contruction, just in time before widgets
get "QStyle::polished".

Task-number: QTCREATORBUG-29054
Change-Id: Ifea953261eab0d42e35a128e2f3338fbbef06a88
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2023-05-05 11:35:28 +00:00
hjk
2d8fd4f017 Nim: Remove now-unnecessary function reimplementations
Change-Id: Ie271499cb99766fd48b77ce66f2d42d898a8e115
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-05-05 10:37:39 +00:00
Miikka Heikkinen
dce30450a3 QmlDesigner: Add UI for lights baking setup
Instead of directly baking, bake lights action now opens baking setup
dialog, where user can set up baking related properties for
models and lights in the scene, including those exposed from
subcomponents.

Fixes: QDS-9805
Change-Id: I9e0bae98d8a79be4cf8b09ef989c41083a7fbf5d
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-05-05 09:38:53 +00:00
Marcus Tillmanns
845192eb14 Terminal: Fix strings
Change-Id: I573d642084d3cc26e032c43d6fb7c1fdd2594d4d
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-05-05 09:36:49 +00:00
Marcus Tillmanns
f4abb1ec4a Terminal: Remove unnecessary destructor
Calling Aggregate::remove is not necessary and led to a warning message.

Change-Id: I51cdd7bfa9bdda7a3ebedf6a86e48fe54fd8f3ef
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-05 09:21:51 +00:00