Commit Graph

80400 Commits

Author SHA1 Message Date
Henning Gruendl
519b9e3c52 QmlDesigner: Fix startup crash on linux
Task-number: QDS-9198
Change-Id: I1e0f87a941ccbd2131f0e86ae20f7a2d0c2d7856
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-02-20 10:15:55 +00:00
Jarek Kobus
6c50298fa5 RunWorker: Remove watchdog functionality
Not used anymore.

Change-Id: Ib28287648dd15a31775a72c5a821ba33cae255fa
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-20 10:14:10 +00:00
Jarek Kobus
ce082b7bc4 RunWorker: Remove unused virtual function
Change-Id: I70788a0a17f5fcb214b63c812a6bb8a3547e7ebc
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-02-20 10:11:59 +00:00
Alessandro Portale
50d2565c68 Translations: Fix occurrence of tr() call with randomn context
Change-Id: Iaba347e3611f894c9f76cffa7e8b7870d13d9920
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-20 10:03:14 +00:00
Christian Kandeler
7fe9363395 CPlusPlus: Use categorized logging in lexer
Not suprisingly, the #ifdef-based debugging produced uncompilable code
when enabled.

Change-Id: I4a6646bfa98a8500491be4892d464ec88512bec7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-20 09:03:55 +00:00
Alessandro Portale
e27f82b49e Translations: Merge "OpenWith::Editors" into "QtC::Core"
Change-Id: I241ccc53afa11fa3faa1f1ca9363421827081812
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-02-20 08:00:37 +00:00
Leena Miettinen
ff71290758 Doc: Describe Temporarily hide inline annotations in Edit mode
...for different types of annotations individually in the annotation
tooltip popup.

Update the screenshot.

Task-number: QTCREATORBUG-28721
Change-Id: Ic2f010e370109a5ea35aef5d9c8da5b74927f4ef
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-20 08:00:20 +00:00
Andre Hartmann
b9af26adf3 Git: Fix soft asserts on failing instant blame
When git blame returns no output, silently avoid creating
annotations instead flooding soft asserts.

This situation can easily happen when navigating to a
header file that is not under version control.

Fixes: QTCREATORBUG-28768
Change-Id: I8d2f443dec98575221995a9016bd2f8442c682cf
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-02-19 14:56:14 +00:00
Orgad Shaneh
10dc4f93f4 VCS: Recover clearer actions when closing commit editor
Amends commit d63bfa4a29, and recovers the
actions that were introduced in 15b176e30c
(relates to QTCREATORBUG-18799).

I keep being confused by these Yes/No myself :)

Change-Id: I0429ef9c25231b96bd595a1bfb6808b621db54e5
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2023-02-18 16:58:22 +00:00
Tasuku Suzuki
8b70e59cdb Add markdown viewer plugin
Fixes: QTCREATORBUG-27883
Change-Id: Ie4099b8a322797d300bc15a80333bcb361ecafc3
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2023-02-18 16:40:10 +00:00
Miikka Heikkinen
5248922e0e QmlDesigner: Focus the content widget of the dock when focusing tab
When DockWidgetTab or DockWidget is focused, typically user actually
wants to focus the content widget, so we now do that.
Focusing content widget is done asynchronously to avoid complications
from doing another setFocus in middle of setFocus handling.

Fixes: QDS-9104
Change-Id: I569639c2f36f0721aafcdcab3498c875e98993a9
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-17 16:28:30 +00:00
Thomas Hartmann
f681b696e9 QmlDesigner: Add StudioQuickWidget
This makes it easy to share the QQmlEngine between different
QQuickWidgets.
All StudioQuickWidgets share the same engine.

Change-Id: I2b370a45a14fdc143e161e2aca62b45aa0d91da9
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-17 16:01:32 +00:00
Brook Cronin
9e2926c537 QmlDesigner: Update component icon in nav to new design
Change-Id: I1cdcc9aeb1b654b2a3e01a08ce21f11bda94df2e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-17 15:52:48 +00:00
Thomas Hartmann
1cbbcea8cc QmlDesigner: Move global annotations to edit mode
Task-number: QDS-9194
Change-Id: Iadba8028e5c4c91195413094086ec5c87329dff3
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-17 15:44:19 +00:00
Thomas Hartmann
9b06fa46fb QmlDesigner: Fix FlowView issue
NodeMetaInfo is always valid since last refactoring.

Task-number: QDS-9188
Change-Id: Idc7e7de9031485b12a0764e0aca3f89d482cdd72
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-17 15:40:46 +00:00
Thomas Hartmann
a4605a962e QmlDesigner: Fix crash
Task-number: QDS-9187
Change-Id: I3711da6a3dbab1bda1bf2c33da1834ca017e4d30
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-17 15:38:38 +00:00
Thomas Hartmann
2b9fcb8132 QmlDesigner: Use StudioQuickWidget for states editor
Change-Id: I4c6c85b9f92769700f979b070dd96cb0c50a58cd
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-17 15:28:53 +00:00
Mahmoud Badri
0fb12133bb QmlDesigner: Fix drag reset animation after drop on mac
Fixes: QDS-8933
Change-Id: Iab88c996c98e2f1eb01c0282445409411226ff95
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-02-17 15:25:54 +00:00
Miikka Heikkinen
020db8f8e8 QmlDesigner: Autoexpand material browser sections on search
Also refactors ensuring visibility of selected item as the old way
broke when searching.

Fixes: QDS-9109
Change-Id: I87e45ff04a32e4de0adb7029cdfa47b058fa0f61
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-17 15:21:58 +00:00
Pranta Dastider
294a08b265 QmlDesigner: Update Tooltips for Swipe View Section
This patch update tooltip text for Swipe View Section fields
in Property editor.

Fixes: QDS-9175
Change-Id: I7b8b2328f1294481252998b0396f597bceb957fe
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-17 15:06:06 +00:00
Pranta Dastider
0a004a428e QmlDesigner: Update Tooltips for ToolSeparator Section
This patch update tooltip text for ToolSeparator fields
in Property editor.

Fixes: QDS-9172
Change-Id: I44ad7a12aeaa29aab7046893ba6a8079b33645ca
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-17 15:06:02 +00:00
Pranta Dastider
c74d99e4cf QmlDesigner: Update Tooltips for Container Section
This patch update tooltip text for Container fields
in Property editor.

Fixes: QDS-9174
Change-Id: I2496c3c07328becbc5c7c94fbbc4eca09d076245
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-17 15:05:57 +00:00
Pranta Dastider
68a77477c1 QmlDesigner: Update Tooltips for Spin Box Section
This patch update tooltip text for Spin Box section fields
in Property editor.

Fixes: QDS-9176
Change-Id: I57f8e18f49fe62d60566338f25f2ba0d8d1334e3
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-17 15:05:52 +00:00
Ali Kianian
b6bfa5bd1f QmlDesigner: Clean up curve editor toolbar
- Slider size is adjusted
- Zoom actions are available
- Spinbox controls and labels are aligned to right
- Control styles are modified

find better style for the controls

Task-number: QDS-9079
Change-Id: I3fa376102d71ea6f904e72de1e6cc2f50ad1c8b6
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-17 14:45:59 +00:00
Christian Stenger
1a4badb705 SyntaxHighlighting: Fix qbs build
Broke with 30c768badb.

Change-Id: Id8b56247acc9d2eb447ca85d1c5c7c5bc77f70bb
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-17 13:39:53 +00:00
David Schulz
487ea9cd99 Doc: add link to java language server packages
Change-Id: I9ccd1c6b09300685bbac4a85354f881293d394b9
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-02-17 13:12:00 +00:00
Eike Ziller
78218cd601 Add change log for 9.0.2
Change-Id: Ie94ae6ffab82fcc9eb86275d57c5990f5f1d8ae3
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
v9.0.2
2023-02-17 12:42:09 +00:00
Christian Kandeler
9098357471 Update qbs submodule to HEAD of 2.0 branch
Change-Id: I7451d19dfc52fc416ecb3e4594912480fb131549
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-17 11:54:58 +00:00
Alessandro Portale
0e4d618a2f Translations: Fix fix_value in the extraction scripts
The scope of fix_value function seems to be to just escape some
sequences. This, replace "\n" with "\\n".

Also fix three related translation sources in qtcreator_de.ts.

Change-Id: I1d4177d99a8f60757e5e17fb7f56960f522be728
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-17 11:52:25 +00:00
Eike Ziller
330a6f793c Link with Qt: Remove now harmful check
The check was trying to find out if the Qt Creator installation is part
of the online installer or a Qt installer, by checking if there are
install settings without the key "Settings/InstallSettings".

Since we made Qt Creator optional in the installer, the install settings
contain that redirection key anyway, so it is no longer an indicator for
Qt Creator being part of the online or an Qt installer anymore.

Actually the check now _disables_ the Link with Qt button for the
commercial Qt Creator offline installer on macOS, because that ships
install settings that add the plugin path to the commercial plugins
outside the Qt Creator app bundle, but does not contain "Settings/
InstallSettings".

Just remove the check.

Change-Id: I88c3ef007a728dff0f4214e5a5683ffcede23796
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-17 11:35:55 +00:00
Marcus Tillmanns
8ed10639b6 Utils: Make getFileAccess static
Change-Id: I6af1ee8be88bf378bd1ddff8fee02005cc9ed6cb
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-17 11:22:50 +00:00
Eike Ziller
1938926c69 Build: Add target for lupdate with obsolete, without locations
Which would be something that we can check into the repository.

Change-Id: I14e3a6d5e5a505b4ae0dc4b22046834ee645ef9c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2023-02-17 11:02:46 +00:00
Leena Miettinen
d899cfed38 Doc: Describe that the locator f filter expands variables
Task-number: QTCREATORBUG-242
Change-Id: I6066fc122bfbae50a1daee801ac4d94298dae25f
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-02-17 10:59:52 +00:00
Leena Miettinen
f263dd9c16 Doc: Edit the change log
Make some entries more specific. Add articles to increase
readability and make the change log look more polished.

Change-Id: I0d24f1498af59ee47a9ff6442ca1f0627909f65d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-17 10:59:35 +00:00
Ali Kianian
c4cae904ee QmlDesigner: Style particle slider for new theme
The style for slider is overridden in ManhattanStyle.
SeekSlider is modified.

Task-number: QDS-9134
Change-Id: Ib96413f2bb7918d611adf4fc19c184efae1c4f4c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-17 10:57:10 +00:00
Alessandro Portale
6e24d3eec8 Translations: Fix some Tr::tr() calls
Tr::Tr::tr("Foo") would introduce extra translation contexts.

Change-Id: I43903d53d7d65677bb6b7a8bfd85eb5013c1fe6b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-17 10:17:40 +00:00
Alessandro Portale
cd2aef9f50 Translations: Move extracted translations into QtC:: contexts
This change adapts the exctraction scripts. The contexts in the .ts files
were already merged in earlier changes.

Core::Internal::ExternalTool
 -> QtC::Core

ProjectExplorer::CustomWizard
 -> QtC::ProjectExplorer

ProjectExplorer::JsonWizard
 -> QtC::ProjectExplorer

TextEditor::Internal::Snippets
 -> QtC::TextEditor

Change-Id: I277707d259abcc13fac064a1d879aeedee1703e4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-17 10:17:29 +00:00
Mahmoud Badri
3f816fdc77 QmlDesigner: Create texture id based on name
Fixes: QDS-9131
Change-Id: I76d7a0aa132625664518b6d785f4a9edc9ee8e50
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-02-17 10:12:30 +00:00
hjk
9af5ebe856 ProjectExplorer: Use new plugin test object setup
Here a bit less mechanical due to the indirection.

Change-Id: Ia328a267ad0adc0ce1ea1ad56ffc67dc67666418
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-17 10:10:33 +00:00
Miikka Heikkinen
0a2e1731a1 QmlDesigner: Scroll material browser on selection change
When selection changes in material browser, the browser grid is
scrolled so that the selected item is visible.

Fixes: QDS-9010
Change-Id: Ie6f4383b0c8add2965fc42ffdf740effdf02fa67
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-17 10:03:04 +00:00
Jarek Kobus
af03f49bf7 LlvmFileSystemAdapter: Don't use uninitialized memory
Create std::string explicitly using pointer to data and data size.
SmallVectorImpl<char> doesn't include terminating \0, so passing
data size is needed.

Fixes: QTCREATORBUG-28812
Change-Id: I63bd290e990ec8e4cd4fb609764a79e6feff92bc
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-02-17 09:37:46 +00:00
hjk
6ed246e5e2 Core: Use CommandLine for Spotlight locator filter
Change-Id: I2325ae2e55400ddf119bbc1ab2069dc54a79b687
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-17 09:32:11 +00:00
hjk
dcb7a1a119 SilverSearcher: Convert to rew plugin test setup
Change-Id: I219c921df1d073ae3e3405d595a4abc3efbce289
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-17 09:31:58 +00:00
David Schulz
30c768badb Editor: update ksyntaxhighlighting engine to v5.103.0
Task-number: QTCREATORBUG-22558
Change-Id: Ifbb0fe4b02c07d3d6afb35d84644fe8e3542e8d2
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-02-17 08:57:46 +00:00
hjk
0bb9798c30 Core: Drop Q_OBJECT in PresentationModeHandler
Not needed.

Change-Id: Ia6416071f303fd456dc4094aabfeb63acbb226c2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-17 08:26:23 +00:00
hjk
a382be0454 Help: Merge helpmode.{h,cpp} into helpplugin.cpp
Never re-used and tiny. Not worth a file pair.

Change-Id: Idc5b2f4080b7140dee4f32fd834f4c76a7abc4b4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-17 08:26:00 +00:00
Miikka Heikkinen
74e6e5e1b7 QmlDesigner: Show ktx texture dimensions in tooltips
Tooltips in assets and material browser views now show correct
dimensions for ktx files. Dimensions are read from ktx file header.

Task-number: QDS-8851
Change-Id: Ia9ce195eba43e7a8d4fc9e4a980c3c56e75108b4
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-17 08:01:18 +00:00
Thomas Hartmann
cabf16c521 StudioWelcome: Disable the mode bar once on first start
This ensures that users who explcily enabled the mode bar,
still get a hidden mode bar, unless they explicitly enable it
again.

Change-Id: I491dc1809b4cffa2637919c1c4ac35cef1e27ccc
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-16 20:30:49 +00:00
Thomas Hartmann
440bfbfd90 QmlDesigner: Fix crash
Change-Id: Ic36fb5b01607bec9023ce61c6b8cdf5eae952b7f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-16 17:58:15 +00:00
Thomas Hartmann
153279e686 StudioWelcome: Change default path to examples
As discussed we store examples in: QtDesignStudio/examples.
We already habe an option and UI to change the folder.

Change-Id: Ib8a313e94f6782ead75fcca958d7aa32a99bb8ea
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-16 16:40:28 +00:00