Commit Graph

82976 Commits

Author SHA1 Message Date
hjk
11e1c7b1a4 Debugger: Move CommonOptionsPage to new settings scheme
Change-Id: I851931d3b0536659dc2e53a67b9879caad2f3166
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-20 13:47:24 +00:00
hjk
2f11a1d32b Utils: Avoid some FilePath::toString() uses
Change-Id: I7d6ee7739e14a25787ca661e10cc24fa6c536780
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-07-20 13:15:36 +00:00
Eike Ziller
934eb86d77 EditLocation: Use QByteArray directly
The `state` in the edit location is used to save the editor state, which
is a QByteArray, so there is no use in saving it in a variant instead of
a QByteArray directly.

Change-Id: I987a7d1bbb66b2cb1c1f4c7cfe0451742ea5bca2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-07-20 13:03:41 +00:00
hjk
9b0d90ec33 Help: Clean up constants definitions
Some unused, some style.

Change-Id: I3308e2c7a6a4ce861d32889682f4a57b45d4f894
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-20 12:37:12 +00:00
Eike Ziller
31312dc23e Examples: Re-add categories for sorting
that got accidentally lost while merging 11.0
because the code moved

Change-Id: I786d89f0909ccf5f3159a734b1d10d78e96904c5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-20 12:35:32 +00:00
Eike Ziller
9dbd129ab6 Merge remote-tracking branch 'origin/11.0'
Change-Id: I39643590e2753a1079980e5f9fbcbc33318aa0a5
2023-07-20 13:17:09 +02:00
Henning Gruendl
bb635325e7 ADS: Integrate newest base repository commits
* Add drag and drop to auto hide

Base repository was merged until commit
65600a4dcd072fd2773b661823816db6392c34eb

Change-Id: I09dd6613869368d3cf0c701055a6972db915561d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-07-20 11:00:54 +00:00
Henning Gruendl
16ef838f23 ADS: Integrate newest base repository commits
* Update to newest version of ADS
* Remove native window and title bar support on linux

Base repository was merged until commit
8d4507e9d83434be976ff8c7bc9f59733937a08d

Task-number: QDS-10242
Change-Id: If74b6b50421be3b759c61b0f76f4a330991f71fa
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-07-20 11:00:24 +00:00
Jarek Kobus
e8669653f1 Icon: Pass const reference to QList in c'tor
Change-Id: I8e009cdd29d08fc0dbcac3c812885779c928337c
Reviewed-by: hjk <hjk@qt.io>
2023-07-20 10:51:44 +00:00
hjk
635e8c1614 Utils: Introduce a FilePathAspect::expandedValue()
Currently and long-term synonym for operator(), to be used in
cases where (*this)() or such looks ugly.

Change-Id: I3f70ecd3298a1df394a0e3cc593917b4c7d36d82
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-07-20 10:39:43 +00:00
hjk
e8de9d44c9 Qmake: Use aspects more directly in QmakeBuildConfiguration
Change-Id: Ida1f62939242944e25986b71183164cd15c8de94
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-20 10:36:38 +00:00
Marco Bubke
21983a8377 Utils: Fix SmallString::append(QStringView string)
It used the size of the destination string but it had to use the size of
the appended string to inquire the maximum required size.

Change-Id: I1c910abab0ac60ed5fec1b3dc3a358e438532281
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-07-20 10:30:25 +00:00
Jarek Kobus
6cc471f38d Utils: Replace QVector with QList
Make usages of QList consistent. In some cases the
declaration contained QVector arg, while the definition
had QList arg.

Remove some unneeded includes of QList.

Change-Id: I7c15b39f261cefdeec6aaaf506ff4cc981432855
Reviewed-by: hjk <hjk@qt.io>
2023-07-20 09:57:07 +00:00
hjk
52ba040e60 Utils: Emit TypedAspect::volatileValueChanged when it changes
Change-Id: I9a2cf591955332453e6ff9d99c5e18249510599a
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-20 09:40:42 +00:00
Marco Bubke
601308edcd QmlDesigner: Remove misplaced EffectMaker
I could not find any qml module for effect maker. So it will break the
meta info system.

Change-Id: I7a9593a3033e51cb3a0cc922a6f913dfee63338d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-07-20 09:39:14 +00:00
hjk
ddff28150d ClangTools: Convert two persisting values to aspects
Change-Id: Ida296c35f08951eaef698f53bceb705728f55aa9
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-07-20 09:31:59 +00:00
hjk
b14b7b1a5f Replace a few more Aspect::value() calls with operator() uses
Change-Id: I9343e74bfb51af41df02a411976b82b9260be2fb
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-07-20 09:31:09 +00:00
Leena Miettinen
6603c247d6 Doc: Fix reference to an image whose format changed to WEBP
Change-Id: I123af115096b17fdbe500af37f25704a45ad78a1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-07-20 09:27:26 +00:00
hjk
7dfdb6d36c Android: Hide some manifesteditorwidget code in the .cpp
Change-Id: I4478cb2d85535c8d92aeef5e1e664e001d168ec5
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-07-20 09:09:38 +00:00
hjk
944a1e8a11 Android: Remove a few unnecessay Q_OBJECT
Change-Id: Ic57a7cfc58d741547cb793b24ff1358d900eaf5d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-07-20 09:09:29 +00:00
Leena Miettinen
a76f8cf4dc Doc: Change Extending Qt Creator Manual \page to index.html
It was extending-index.html to solve some issues that were
caused when generating the manuals from the same sources, but
those seem to have been solved. The name index.html was already
used at doc.qt.io for version 10.0.

Change-Id: I16c11d286107141f49cf28824cef998bd233d975
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-07-20 08:43:04 +00:00
Eike Ziller
3da1adc442 sdktool: Fix writing files
Fix an error when copying the file operations to sdktool.

resolveSymlinks was (basically) always returning an empty string.
Instead it should return the first file path that is not a symlink.

Amends bb4d9c92e7

Change-Id: Id6bfcc3332c14f074ab635e11ca0536b5326dbb1
Reviewed-by: hjk <hjk@qt.io>
2023-07-20 08:34:06 +00:00
Christian Stenger
cd971160c3 SquishTests: Adapt to different ui approach
Using the window title property on macOS is not reliable
as message boxes do not get any there. Use the expected
text of the message box instead.

Change-Id: I36dc865dcce6ba98643f0174887de12c197b3222
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-20 08:14:38 +00:00
Christian Stenger
d53a743262 SquishTests: Fix used short cut on macOS
Modify used short cut on macOS again. This tends to break
depending on OS version, underlying keyboard layout and
maybe even more causes.

Change-Id: I79b0e281128b8f779307782038aa9fb42510b633
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-20 08:14:29 +00:00
Christian Stenger
b44a7817b8 SquishTests: Handle codec problems
Reading files depends on the system encoding and will
return a bytes object instead of a str even for text files
on some Windows setups.
Handle this by explcitly converting to str if needed.
Handle possible decoding issues by falling back to UTF8
encoding when running into decoding error while decoding
on Windows.

Change-Id: I8c1f24ff052710e4b1927399d54e321088e3b171
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-20 08:14:10 +00:00
Jarek Kobus
9f3e0db3e4 Unarchiver: Replace QVector with QList
Change-Id: Ib8a954f1b29ee475b645191424eb0e391dbb6baf
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
2023-07-20 07:14:48 +00:00
Jarek Kobus
6bb8bbabd2 Utils: Rename archive.{cpp, h} -> unarchiver.{cpp, h}
Change-Id: I0c3fdb68a15a6ad7419405d2bef86d4e75537df5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-07-20 07:14:43 +00:00
Jarek Kobus
694c29d67b Utils: Get rid of Archive
Use Unarchiver instead.

Change-Id: I7544b36ca11578d7ae7eb8571e6fe823cf74dee1
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-07-20 07:13:42 +00:00
Jarek Kobus
cd8bb1d923 ExampleCheckout: Replace the usage of Archive with Unarchiver
Change-Id: I76550b618bcc631fc9575343eb4b8552cb21a018
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: hjk <hjk@qt.io>
2023-07-20 07:13:28 +00:00
Eike Ziller
626378de2d Merge remote-tracking branch 'origin/11.0'
Conflicts:
	src/plugins/cmakeprojectmanager/cmakebuildstep.cpp
	src/plugins/qtsupport/examplesparser.cpp

Change-Id: I2a0808261969e8c7cef7fae86d9027a155bf9b14
2023-07-19 16:10:37 +02:00
hjk
f10d0bad01 TextEditor: Push back explicit use of core settings
It's meant to be handled via aspects in the long term.

Change-Id: I2a2792f7bb5e75ede18e2328bb31729c212e30e6
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-19 14:00:39 +00:00
hjk
74ff10001a Squish: Set only category icon path in settings page
... instead of icon directly.

Change-Id: Ie16cb23323bd2ef90b5169ecc0bd8f4fb6d406f0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-19 14:00:30 +00:00
hjk
2b7e8599c8 CppCheck: Move widget creation for manual run closer to its use
Change-Id: I08d50f5e4534b8a58d374ae37bfd03dbd234a483
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-19 14:00:17 +00:00
Christian Stenger
182104e013 SquishTests: Adapt to different texts on macOS
Change-Id: Ie97003fd7de907d1a0f3ac71d6244dd68e2bf833
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-19 13:44:16 +00:00
Marco Bubke
e46eb57543 UnitTests: Add more matcher
The IsEmpty and IsNull matcher have been extended to be more generic.
QVaraint matcher have been added.

Task-number: QDS-10290
Change-Id: I34fcb0571190dd37e7706587ee617e1301f9f841
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-07-19 13:17:44 +00:00
Marco Bubke
e204af5cac QmlDesigner: Modernize Enumeration
Save some allocations and return a view instead of a new value. If you
want a value because you depend on a null terminated string you have to
use toScope() and toName().

Task-number: QDS-10290
Change-Id: Ia87b8d559fc1fe9bb1992e61da0aa86c68d53535
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-07-19 13:16:44 +00:00
Marco Bubke
194b7d49b0 StudioWelcome: Fix more warnings
Change-Id: I1c1fa8fdfd33b50d47afe4eab82347cf3c0eff08
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2023-07-19 12:16:53 +00:00
Eike Ziller
74801a52f2 German translation: GitLab
Change-Id: I7efac2f2ef7ad5ce981de8cd33952597f5d940b9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-19 10:08:29 +00:00
Eike Ziller
c9ff58d38b German translation: Docker
Change-Id: Idf6f26e2b2f0f4c803cebc7c0fe52ee22af96332
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-19 10:08:18 +00:00
Christian Stenger
6614abe549 SquishTests: Adapt to Python 3
A dict's values object is not a list as it had been in Python 2.
Explicitly convert it.

Change-Id: Iab54a5833b77c6890b108065657da3ff73c96f7f
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-19 08:57:08 +00:00
hjk
d7461a380b Squish: Use new settings scheme
Change-Id: I262342c2797a03a774c89f7b7caae3f9d8c79a6c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-19 08:25:36 +00:00
hjk
e157ac82a1 Debugger: Paddle back on multiple inheritance for settings
This is fairly close to the new "standard" pattern for an
individual page but still allows flat access using the same
'settings().' stanza.

Change-Id: I1edbbd64a857a3d3936fb2c21fdc7e3c8ae7a44c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-07-19 06:39:56 +00:00
hjk
2a31f17354 Utils: Use handleGuiChanged more consistently in aspect implementations
Change-Id: I53eb3416b27dca45bd30860f1fb0ec674c98240e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-07-19 05:16:32 +00:00
hjk
c7cf450bd8 VcsBase: Remove almost unused access to VcssBaseClientImpl::settings()
Change-Id: I090714e9724dcc00b37651bb1310d7848066e03e
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-07-19 05:14:27 +00:00
hjk
bedab22e63 Replace a few aspect.value() calls with operatpor()
Change-Id: Icaada671fe8dbe59d4f596da49476b3ec2137c25
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-19 05:14:13 +00:00
hjk
3e2e0d9393 Meson: Delay settings creation
Change-Id: Ib4de981670c9f70e5ddd4c6e0b31bfd4b6a61851
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-07-19 05:14:01 +00:00
Jarek Kobus
481d301c5c GitPlugin: Replace QVector with QList
Change-Id: I20218a5fcd9b4af6e6633de55d41d4ba771bcd75
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-07-18 20:48:28 +00:00
Jarek Kobus
171675099c DiffEditor: Replace QVector with QList
Change-Id: I79246cc79a2cdcd6150b060386b34ce2f9923456
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2023-07-18 20:48:22 +00:00
Burak Hancerli
98c32d2043 QmlDesigner: Soften asserts on invalid URLs
Change-Id: I45ff2b98c45c1c39c1fbd28e89ddc15bde1adb93
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2023-07-18 19:44:17 +00:00
Marco Bubke
90b0fd2869 UnitTests: Fix warning
Change-Id: I834095e1e8f40cb063b6014e98bf79ae8d8e439b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
2023-07-18 15:12:22 +00:00