Commit Graph

80509 Commits

Author SHA1 Message Date
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
Eike Ziller
c3c99174e4 Use common tool tip for "Configure..." kind of buttons
We have a function that centralizes the text for that.

Change-Id: I9d9fbed6e111038e7512030e199b8d8d03fbbafa
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-02-16 09:07:12 +00:00
Marcus Tillmanns
cab8eee85c Utils: Fix fileInfoFlagsfromStatMode
Previously the checks for the mode bits were incorrectly
using AND checks. As a fix the contents of "stat.h" was
copied and converted so it can be used directly and on
platforms that do not contain stat.h

Change-Id: If735dcffb8ffc490d297dae7f8c43ae01e79f460
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-16 08:20:11 +00:00
Leena Miettinen
14297b97e4 Doc: Describe Clang Format as the default way to set code style
The plugin is now enabled by default. Clang Format can be disabled
either globally or at project level without disabling the plugin.

Task-number: QTCREATORBUG-28721
Change-Id: Ifbc0418400ed8a7942d0dbceaa95b078ac897c49
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-15 15:20:49 +00:00
hjk
b30a74130f Clang*: Use new plugin test setup scheme
Change-Id: I636b93d74b4f9ab9ade28c46c6e84b461ccf34be
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-15 14:47:37 +00:00
hjk
19a975735d ProjectExplorer: Remove unused constants
Change-Id: I4e014a8bfd96a1799de803938d9850d482192bf6
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-15 14:36:33 +00:00
Christian Stenger
beac91ac81 Dumper: Fix std::variant on Linux
Amends 2c39db8eb7.

Change-Id: I22e9e2d25d5353cf2e818b7e2fa9f52557dbdda5
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-02-15 14:24:49 +00:00
Christian Stenger
ca13deb70f QmlPreview: Fix initial zoom factor
Got unintentionally changed while doing refactorings.

Change-Id: Ib8e63112e0b5e6eef526cddae9412bcd8003e4d0
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2023-02-15 13:39:18 +00:00
Christian Stenger
518a513888 CDBPM: Adapt to change in FilePath
Silences a soft assert.

Change-Id: I976ba259533ab33b23f8b530b277638bf727af59
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-15 13:39:05 +00:00
hjk
53cbf82fe7 QmlProfiler: Use new plugin test object setup
Change-Id: Id1aa7ac2151682b2ee8d4fc7dcf94ce0b97acd47
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-15 13:23:59 +00:00
Alessandro Portale
95a88ef732 ADS: Tr::tr()
Following contexts are merged into QtC::ADS

  ADS::DockAreaTitleBar
  ADS::DockManager
  ADS::DockWidgetTab
  ADS::WorkspaceDialog
  ADS::WorkspaceModel
  ADS::WorkspaceNameInputDialog
  ADS::WorkspaceView

Change-Id: Ieb3c8240531ca94f43ec1237c27647a51f59e4f9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-02-15 12:51:54 +00:00
Alessandro Portale
e9365d399f Haskell: Tr::tr()
Change-Id: Ia63322cb5644ab7e63805c0e123eebe5170dd1ad
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-02-15 12:51:47 +00:00
hjk
54f104a567 ProjectExplorer: Move Device settings page further up
Now second after "Kits", matching its importance better.

Change-Id: Ie6c369ef0fe78307d825385beaa2be1738f345ee
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-02-15 12:51:21 +00:00
Eike Ziller
379bf65e96 Some fixes in translated strings
- doesn't make sense to translate "%1"
- showPreprocessedFile: "reason" contains full stop, put at the end
- add missing closing >
- remove whitespace at the end of translated string
- added missing quotes and full stops
- Remove some control text from tr

Change-Id: I5537c3d12d038e25e2209af1198129fbf959b43c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-02-15 12:45:48 +00:00
hjk
b2815c39b1 CompilationDatabase: Use new plugin test setup
Change-Id: Ic45c59a2adb3287e2cd92b70836bc309f5e1a8e0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-15 12:32:21 +00:00
Christian Kandeler
8257369b73 ClangCodeModel: Remove unneeded code
This was liblclang-specific.

Change-Id: I3fe8a8d2d49b1c7b92a54a90864e4ead7152e4ae
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-02-15 12:07:32 +00:00
Cristian Adam
e8802d92e3 CMakePM: Add support for "external" arch and toolset
Fixes: QTCREATORBUG-28693
Change-Id: Id36f334c27f26a1f2ce65351de77e18d93b1a064
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-02-15 11:32:38 +00:00
Alessandro Portale
aa72b039da WebAssembly: Reorganize plugin tests
Change-Id: I1e2be15877ef4d1adc8355b820c1b8fc333d6409
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-02-15 11:00:49 +00:00
Henning Gruendl
9f4eae6536 QmlDesigner: Make application output the default
Make the application output pane the default when the output dock widget
is opened.

Change-Id: I60079242078033310676df3c3c450ef83b8d67d1
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-15 10:59:12 +00:00
Henning Gruendl
fbb79bb4e4 QmlDesigner: Fix SearchBox related QML toolbars
Change-Id: I88962fe48acd4345c29233cb00f72ec2ac6b6ca9
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-02-15 10:59:03 +00:00
hjk
3ac0822854 QmlPreview: Use new plugin test object setup
Change-Id: I6e8bf68bfaf98f5dd44cfe74bbe42c560ded63c4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-02-15 08:44:08 +00:00