Commit Graph

80529 Commits

Author SHA1 Message Date
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
Alessandro Portale
6357f4d6b2 Translations: Add some missing context prefixes to qsTranslate calls
Change-Id: I3358bc464d02e72fe56523262b8fce27480a31af
Reviewed-by: hjk <hjk@qt.io>
2023-02-16 16:08:08 +00:00
Mahmoud Badri
105a350008 QmlDesigner: Rename component editing actions
Go into Component -> Edit Component
Make Component -> Create Component

Fixes: QDS-8848
Change-Id: I3dfd6536fc5e27c66e1cef4006ab2687a75066e9
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-16 16:08:06 +00:00
Sivert Krøvel
1e1cc8cd44 McuSupport: Expand path macros when resetting paths
Path macros were expanded when applying new paths in the
McuSupport options widget, but not when pushing the reset button.
This resulted in paths like {Env:PROGRAMFILES}/SEGGER/JLink,
which are displayed as an error in the UI. The reset-button is
now connected via a signal in McuPackage to the options widget,
since the macro expander is not accessible to the package object
directly.

Task-number: QTCREATORBUG-28500
Change-Id: I962c6eb83142be87e02debbf34f0602683fe6966
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Yasser Grimes <yasser.grimes@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-16 15:42:24 +00:00
Jarek Kobus
2d53e90a2b Utils::Link: Remove 3rd arg from fromString()
Not used anymore.

Change-Id: Iba758c0b5a6bb72c4b65511ab7e0e25e88cbf4f7
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-02-16 15:19:18 +00:00
Jarek Kobus
5d19894f5b LocatorFilterEntry: Add linkForEditor
Make it of std::optional<Utils::Link> type.

Use it for:
1. Removing duplicates
2. Showing link inside editor

Before, QVariant internalData was used in above cases.

Rationale:
1. Removing duplicates between results from different
   ILocatorFilter makes only sense if accept() overload
   for these filter types are the same (i.e. the implementation
   is repeated). Otherwise, we are loosing some functionality
   when some result is removed. Taking into account that
   original intention was to eliminate duplicates for filters
   where we do BaseFileFilter::openEditorAt() inside accept(),
   we store linkForEditor in 3 cases (instead of storing
   internalData):
 - BaseFileFilter
 - FileSystemFilter (only existing file case)
 - OpenDocumentsFilter

   We don't save a linkForEditor where we stored QString
   inside internalData in the following cases:
 - JavaScriptFilter
 - FileSystemFilter (non existing file case)

   Before, in above cases, we could have filtered out
   some results unintentionally. This patch should fix it.

   Now, we remove duplicates only for enties that have value
   for linkForEditor.

2. Use directly linkForEditor, if exists, for opening editor.

This patch aims to decrease the number of different
responsibilities of internalData by 1.

Make 3rd arg of LocatorFilterEntry c'tor default.

Change-Id: I144c58661d7456bb5991f8077dc103272dfab194
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-16 15:19:11 +00:00
Christian Stenger
4b9054c463 Pdb: Fix debugger start for python debugging
Do not stop at the first statement of the script
when performing "normal" debug, stop at the first
break point instead.
Preserve the original behavior when debugging by
triggering "Start and Break on Main".

Task-number: QTCREATORBUG-28732
Change-Id: I3022071f28c086a2d0787ca5873e611f77e28369
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-16 14:10:30 +00:00
Christian Stenger
bc38ad8c59 SquishTests: Adapt to changed project template
Change-Id: I9aa98f194a7ab4fa1390b106e398b12546a7addd
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-16 14:07:57 +00:00
Christian Stenger
7a26b76ce3 SquishTests: Tweak preparation of toolchains
Prepare toolchains for usage. Basically parameterize function
to be used with more than one version and make use of it.

Change-Id: I30ee198302de54d933fa7c436e701273d497cc07
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-16 14:07:51 +00:00
Christian Stenger
15ca3268ad SquishTests: Provide Qt6.2 for testing
Long overdue. Adapt Qt Quick related stuff as this nowadays
is requiring Qt6.2 as a minimum.

Change-Id: Id1e727813034044edb4584c6d5f73a56310293d2
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-16 14:07:44 +00:00
Miikka Heikkinen
120bad0c6b QmlDesigner: Adjust general asset drop area so that there is no gap
Fixes: QDS-9039
Change-Id: Id314dff48155d453fda2ad1df2ccf8aa4061a83f
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-16 13:36:56 +00:00
Thomas Hartmann
e36d5c495f Add option to hide settings categories
This allows to hide setting categories by id.
For example:

HideOptionCategories=C++, Debug, Designer, Kits, BuildAndRun, CPaster, LanguageClient, Version Control

Change-Id: Ifeacbf7885fc2d51ef262fdb8bbbfc81f52bce53
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-02-16 13:08:40 +00:00
Marco Bubke
121e300527 cmake: Add PROPERTIES to add_qtc_test
Change-Id: I66d4437866ae2b107fede78760284dc35a1fb8f0
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-02-16 12:27:24 +00:00
Marco Bubke
cbd02325a8 QmlDesigner: Add extension support in qmltypesparser
Task-number: QDS-7384
Change-Id: I3f84f361360bd085d0ee78f32d808151e32a2436
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-02-16 12:26:32 +00:00
Miikka Heikkinen
0fd152e37f QmlDesigner: Fix mouse cursor for material browser search field
The focus grabber mouse area was interfering with mouse cursor on
controls under it. There is no need to have grabber cover the search
box, as clicking search box anyway moves focus.

Task-number: QDS-9163
Change-Id: Ie2487296914a893dfc658ff8178963233a50c467
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-02-16 12:09:00 +00:00
Eike Ziller
4e9309f923 Merge remote-tracking branch 'origin/10.0'
Conflicts:
	src/plugins/clangcodemodel/clangcodemodelplugin.cpp

Change-Id: Idb3d6e8fdfd278979f6180dc3795a2138bc2e61d
2023-02-16 12:47:32 +01:00
Eike Ziller
22a6b79f45 Coding style: Remove outdated section wrt nullptr
Ealier we state that nullptr should be used, and that is the current
policy.

Change-Id: Id462458f36893354a4f95e086d25a946f94b495e
Reviewed-by: hjk <hjk@qt.io>
2023-02-16 11:08:28 +00:00
Eike Ziller
7a2023f157 Coding style: Remove wrong compiler statement and merge C++ sections
The supported compiler are stated in the README, no sense in replicating
and maintaining that information here.

Back then it made sense to differentiate between "C++" and "advanced C+
+(11/14), but nowadays that separation is artificial, it all is "C++
features".

Change-Id: If67274566776ccd37bd20e925531405628edeb47
Reviewed-by: hjk <hjk@qt.io>
2023-02-16 11:08:11 +00:00
Leena Miettinen
959da084cc Doc: Describe what F2 does for URLs and .qrc files
Task-number: QTCREATORBUG-28721
Change-Id: I33f6388d704fa20420585f8fcc6f63b52e7181f9
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-16 10:56:17 +00:00
Eike Ziller
b86caa01b0 Fix some issues in the change log
Change-Id: I68ea9c278310b0a1f3b7edf7b3247b443af071df
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-02-16 10:01:02 +00:00
Yixue Wang
227e66b62c ClangFormat: Correct .clang-format
.clang-format contains some disallowed values for some fields. These
fields are corrected according to ClangFormatStyleOptions.

Change-Id: I32a40cdfeabee550ebf23f6c9cb3d1fafc3b764b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-02-16 09:28:50 +00:00
Mahmoud Badri
7fc34fd59c QmlDesigner: Fix components view search
Fixes: QDS-9161
Change-Id: Id36b7e2ba56735438ce15c303f692ac2035020f7
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2023-02-16 09:15:41 +00:00