Commit Graph

76686 Commits

Author SHA1 Message Date
Jarek Kobus
a1c4d563a1 DiffEditor: Use DiffSide enum inside RowData
Change-Id: I5511e443e2f76a1dab5cc78eec5faec04ee31bcc
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-09-28 15:48:16 +00:00
Jarek Kobus
cd8ff54b00 DiffEditor: Use DiffSide enum inside ChunkData
Change-Id: Ic10fe9faa6b6ccefcbf4c062663dedefa6bf5872
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-09-28 15:48:08 +00:00
Jarek Kobus
b4390a3a80 DiffEditor: Introduce DiffSide enum
This should simplify various diff structs.

Change-Id: Ia8c77de558a92a2a64fc13c674a46192521970f0
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-09-28 15:47:49 +00:00
Jarek Kobus
054d7d65d2 UnifiedDiffEditor: Move showing diff into separate thread
Before, when all the data was finished, we called showDiff()
in main thread. This consisted of 2 parts:

1. Calculating some extra data and generating actual text
   for UnifiedDiffEditor out of input data.
2. Calling setPlainText() with generated text.

For a really big diffs this could freeze the main thread for a
couple of seconds. Like e.g. 05c35356ab
(initial Creator import) - it contained 7 million characters,
part 1. took about 500 ms and part 2. took about 2.5 seconds.

This two tasks are now done in separate thread.
However, since we can't call TextEditorWidget::setPlainText()
directly from non-GUI thread, we create a separate
TextDocument object in the worker thread, fill it with
generated diff input and move the TextDocument object
into the main thread as a result of async computation.
In main thread we replace TextDocument object of the
TextEditorWidget with the one generated in other thread.
This replacement is very fast.

Change-Id: I49a717ced1dc2d5b8946e0fd6bee244b25071f35
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-09-28 15:47:39 +00:00
Christian Kandeler
5c0cafa68e Core: Allow to pass a reason for a failed search
... and make use of it in the LanguageClient.

Change-Id: I7e47a7419c7168c5e26709ae225e4887d4c5089b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-09-28 15:42:40 +00:00
Eike Ziller
380362e75d Actions filter: Fix compiler warning
warning: missing field 'commandId' initializer

Change-Id: Iaf62313af2fbfdce4372bd97c7698dadd59a5ae7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-09-28 13:52:12 +00:00
hjk
9c47990a0a VcsBase: Simplify QActionPushButton implementation
No need for Q_OBJECT.

Change-Id: I72510ef2e4a722286d12c93016a92370393ca32c
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-09-28 13:48:46 +00:00
hjk
69f4cb86dd VcsBase: Inline submiteditorwidget.ui
Quite a bit of special access from the outside, so LayoutBuilder is not
really helpful here.

Change-Id: I006b66e155c2abd46e7077add006fe31ec6b227d
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-09-28 13:48:41 +00:00
hjk
aa2145ac5e VcsBase: Inline nicknamedialog.ui
Change-Id: I98b0d300d78336c67103483bdf5c552b36e0a868
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-09-28 13:48:35 +00:00
Cristian Adam
860d003a34 CMake: Add cpack packaging support
Tested on all desktop platforms like this:

  * Windows with cpack -G NSIS64|WIX|IFW
  * Ubuntu Linux with cpack -G DEB
  * macOS with cpack -G DragNDrop

Fixes: QTCREATORBUG-28199
Change-Id: I5cd66aa387cc9677303ac3aece28eccb710d074f
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-09-28 13:44:12 +00:00
David Schulz
8c996891ae Editor: Fix reapplying tab and font settings
Change-Id: I6b6ee2d669089adf5db3ae8dabb5d2cc0ca628f9
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-09-28 13:14:06 +00:00
Eike Ziller
edcb5a7e6e Support dark themes for Qt documentation
Uses offline-dark.css instead of offline.css in case of Qt Creator using
a dark theme. Looks for the CSS file first in the shipped documentation,
otherwise uses a fallback that is shipped with Qt Creator. The fallback
is based on Qt 6.3.2 documentation, with colors replaced by palette
colors from the flat-dark theme (normalBackground, alternateBackground,
shadowBackground, text). Link colors are taken from the dark Qt online
CSS.

Makes sure to keep a light background for non-Qt documentation, since we
do not assume that they provide a dark themed CSS.

Fixes: QTCREATORBUG-26557
Change-Id: I4a09eedd1216cebeb87c12df40ad99ced030fa73
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-09-28 13:05:53 +00:00
Thomas Hartmann
76d55de400 QmlDesigner: Fix crash
Do not call validId in updateContext.

Calling validId does mutate the model and will set an id if none exists.
Since updateContext is called on selection change the user does not
expect the model to mutate and when switching/creating documents this
could even lead to a crash.

Instead, we give the created MosueArea always an id and disable the menu
in case there is no id.

Task-number: QDS-7806
Change-Id: I3d5d1ce41025d94db3cfff48f483366e56b58a32
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-09-28 12:42:10 +00:00
David Schulz
e2352f1cc0 Clangd: add setting for index priority
Change-Id: I5f9ea8c31747d1cd1e1e6b77ab7c705a7f275cff
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-09-28 12:16:13 +00:00
hjk
37db98db30 Debugger: Simplify TypeData setup and registration
Change-Id: Ib23249eae63901d614cbe33fe184f174a10efbe4
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-09-28 11:59:50 +00:00
hjk
0b376d9145 Docker: Add an option to auto-detect in PATH plus additional directories
Change-Id: I95e4676ac01143301f2c9f11a6de2269d5c17467
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2022-09-28 11:40:20 +00:00
Christian Stenger
c0599002fd QmlDesigner: Fix missing include
Change-Id: Iddf5750a05104217eaa78bc67c74c568da9bf231
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-09-28 09:57:28 +00:00
Piotr Mućko
d7c95cb2a2 Remove e2 project package from jsons
Change-Id: Id91add0a0eb77748db5877e2915ca0b2dbdf6d28
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
2022-09-28 09:42:51 +00:00
Marco Bubke
ed66ba4cce QmlDesigner: Use new validation approach in states editor
Many validation tests can now be skipped.

Task-number: QDS-7454
Change-Id: I43ef981379cf495506b6cf8e8b3cedf50b061281
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-09-28 09:21:07 +00:00
Marco Bubke
432ed0a72d QmlDesigner: Use new validation approach in curve editor
Many validation tests can now be skipped.

Task-number: QDS-7454
Change-Id: I24aa4023808a42215a6e79c15f962128702ff51c
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
2022-09-28 09:20:30 +00:00
Marco Bubke
7ffb66ade2 QmlDesigner: Use new validation approach in path tool
Many validation tests can now be skipped.

Task-number: QDS-7454
Change-Id: I77ee17ff2abdfbbcc3c6db751f0296b3935ae8e0
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-09-28 09:20:14 +00:00
Marco Bubke
563e055c5a QmlDesigner: Use new validation approach in property editor
Many validation tests can now be skipped.

Task-number: QDS-7454
Change-Id: I3fe3ee1fcf97b965872cb6f76f00034caeb72ba0
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-09-28 09:17:57 +00:00
Marco Bubke
60a6fad2ae QmlDesigner: Use new validation approach in timeline editor
Many validation tests can now be skipped.

Task-number: QDS-7454
Change-Id: I8b7c1a5cdce2d19dd62cf2400d297dc9fffd4fcc
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-09-28 09:17:34 +00:00
Marco Bubke
776784a7ba QmlDesigner: Use new validation approach in transition editor
Many validation tests can now be skipped.

Task-number: QDS-7454
Change-Id: I346e9ba506e836d8064e425e509dda0c400635a0
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-09-28 09:16:43 +00:00
David Schulz
55a2d0056f Locator: remember last triggered actions
and move them to the top of the actions filter.

Change-Id: I9c8fcc7f74e79c62db1df9c784fbedc4006eafb1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-09-28 09:08:32 +00:00
hjk
be931daff9 Android: Remove unused #includes in splashscreenwidget.cpp
Change-Id: Ib2a7f3087602516d69b8e2553f16953a2287bbc1
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-09-28 07:02:55 +00:00
hjk
f2783901d0 Android: Avoid QFileInfo use in createandroidmanifestwizard.cpp
Change-Id: Iedbb2b403f00c7fe21bf81f89366bb62c71dcf01
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-09-28 07:01:38 +00:00
hjk
5eae2a2c42 Android: Clean up javaeditor a bit
Change-Id: I600916ecb1f851c52efa742022e0cab3c23cabd6
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-09-28 07:01:25 +00:00
hjk
4a5c3d871d Android: Clean up JavaParser a bit
Change-Id: I8d5113c7916f816d34a1eacc0b978645d710b2be
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-09-28 06:11:08 +00:00
hjk
52e8b83bd5 Android: Code cosmetics in ToolChain
Avoid a global static that doesn't buy much; some namespace changes.

Change-Id: I80d0f5c0e6c7a77e91930ec198c39080b6c7404a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-09-28 06:10:48 +00:00
hjk
6ff6fe3b0e VcsBase: Remove Q_PROPERTY definitions
The initial intention was to make these widgets usable from Designer.

We don't expect a lot of new uses in this direction, and clazy
seems to warn about not-so-complete Q_PROPERTY definitions:

Link https://github.com/KDE/clazy/blob/master/docs/checks/README-qproperty-without-notify.md

Change-Id: I4a2e9ff6ec7ecfd989196801c789533b4c44e8af
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2022-09-28 06:00:31 +00:00
hjk
957a26d379 ClangTools: Inline runsettingswidget.ui
Change-Id: I696ccf0103784e638a3a8cc4a49390f569d9439d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-09-27 16:32:24 +00:00
hjk
3fdc5ca61f ClangTools: Inline settingswidget.ui
Change-Id: Iab93fe772a2f851a2008133ad8f7aae974e6881e
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-09-27 16:06:02 +00:00
hjk
b72ae58629 ClangTools: Inline filterdialog.ui
Change-Id: I6304ac50b34e43ab4b5c26b7dc2b7ab7f77618f7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2022-09-27 15:28:15 +00:00
Alessandro Portale
c06fab97f1 Wizards: Port "Code Snippet" Project Wizard to .json wizard
Code Snippet is the last .xml-based wizard shipped with Qt Creator.
This change ports it to the .json-based wizard format. Instead of
supporting just qmake-based projects (like it did), the new version
supports just CMake-based projects.

Change-Id: Ie64114165fff5d56ddf82041cc4d5f90c44fe77b
Reviewed-by: hjk <hjk@qt.io>
2022-09-27 14:29:05 +00:00
Eike Ziller
d51421210e Add change log for 9.0.0
Change-Id: I1be9ba7f310c99112d40b19432cd0f0d216ead4d
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-09-27 13:41:46 +00:00
Tim Jenssen
4adb4911e6 qds: fix crash when the view is gone
found at:
https://sentry.io/organizations/the-qt-company-00/issues/3571989716

Change-Id: I61faa33716b1f6f3e0cc04cd4871cba354ecec28
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2022-09-27 13:19:34 +00:00
Mats Honkamaa
67112a581f Doc: Fix branding issue
\QC rendered as Qt Design Studio in places where it should be Qt Creator.

Task-number: QDS-7712
Change-Id: I16df93bbb7881c280e96aede32f5619d1228b8f5
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-09-27 11:51:56 +00:00
Christian Stenger
8085ea2c73 Squish: Fix wrong regex
Change-Id: I5c827403140dcbdd17287a213c55b017921ab7cf
Reviewed-by: David Schulz <david.schulz@qt.io>
2022-09-27 11:51:12 +00:00
Eike Ziller
3ff5e461fb Merge remote-tracking branch 'origin/9.0'
Change-Id: I29fcb54cb2c2e62c9b8369f18c9dc91dce240c52
2022-09-27 13:26:20 +02:00
Alessandro Portale
3984516e4b QmakeProjectManager: inline .ui files
classdefinition.ui
customwidgetpluginwizardpage.ui
customwidgetwidgetswizardpage.ui

Change-Id: I7bc6596e108b47d03c48e63cde340e4db8f751d6
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-09-27 11:20:41 +00:00
The Qt Project
537b87476a Merge "Merge remote-tracking branch 'origin/8.0' into 9.0" into 9.0 2022-09-27 11:17:58 +00:00
Thomas Hartmann
3b4b8aec4b QmlDesigner: Adjust caption for User Added Properties
Section does not have a tooltip, yet.

Task-number: QDS-7765
Change-Id: I5c0254cb81094be690fc5e9a076752f95f27a482
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Pranta Ghosh Dastider <pranta.dastider@qt.io>
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
2022-09-27 10:23:02 +00:00
David Schulz
d143f0c2e1 Core: improve highlighting of fuzzy action matches
Split the highlight if it covers the border.

Change-Id: I9177abf18e988b8c2f79ab355a1f17ad3bda4286
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-09-27 10:04:01 +00:00
David Schulz
e7fb5276af Editor: Fix reaplying display settings
After setting the document the display settings that are configured in a
widget might differ from the ones configured in the document. So Check
those values against the desired values from the editor and update if
they differ.

Change-Id: I30c5eddbb09803451fe03769d8e6d189293c5e86
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-09-27 10:03:24 +00:00
Marcus Tillmanns
5f62488761 Device: Add prepareForBuild()
Change-Id: I505c4e660838bc94dcdc83ba91ec225910b8f60d
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2022-09-27 09:19:34 +00:00
hjk
e1d5e7c01f Qmake: FilePath-ify QmakeProjectImporter
Change-Id: Iaf9cd8a81fc1ea84d1736384b5f6079bc18ce0bc
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2022-09-27 09:07:57 +00:00
Yasser Grimes
e38efabea9 McuSupport: support reading packages defaultValues depending on OS
default values can vary between windows and linux so when it is the
case a json object can be specified to describe the default values for
both.

Change-Id: Ifd3e4225ba0e1b1760f93ecea9cfafa4545c3404
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Piotr Mućko <piotr.mucko@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2022-09-27 09:05:11 +00:00
Henning Gruendl
79994c8504 QmlDesigner: Fix gap between extended states
Fix the gap between more than 4 extended states in a row.

Change-Id: I9c8435de0cba74267a23a970e0967388692f5811
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2022-09-27 09:03:43 +00:00
Miikka Heikkinen
07ab73fe7f QmlDesigner: Disable paste option for the original material
Fixes: QDS-7526
Change-Id: Ifdc220685a4881dc3a397d9148022b9be7b5032a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2022-09-27 08:51:21 +00:00