Commit Graph

81246 Commits

Author SHA1 Message Date
Marcus Tillmanns
43862f4cd4 Terminal: Fix setting environment for stub process
The TerminalInterface was setting the environment of the target process
for the stub, this is uneccessary.

The ExternalTerminalProcessImpl was not using the environment
of the stub process which will be important later.

The TerminalProcessImpl was not setting the right environment either.

Task-number: QTCREATORBUG-27519
Change-Id: I89238feedd755d1f1cbe2255b71711e0d5c149d0
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-06-14 13:50:13 +00:00
David Schulz
3c2d545230 LanguageClient: improve the performance of creating text marks
If we already know the document for a text mark we can save the lookup
in the documentModel. This improves the performance for the text mark
creation on windows by around 10%.

Change-Id: Iecf9cb2e9114ed026f5e354e75d279b54c0ce51d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-14 12:56:36 +00:00
Leena Miettinen
e973257cbc Doc: Describe moving files while renaming them
Task-number: QTCREATORBUG-28996
Change-Id: Iecf3b8e5f4d5270803a9591854a4324f8fa6016d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-06-14 12:42:50 +00:00
Cristian Adam
12e04105f5 App: Allow overriding of QT_SCALE_FACTOR_ROUNDING_POLICY
The current code sets Qt::HighDpiScaleFactorRoundingPolicy::Floor with
no option to override the value to something else.

Change-Id: Id08a1cf8165f44a759c9ce8016a1173eb38f5a8d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-06-14 11:48:54 +00:00
Leena Miettinen
aba966e3ee Doc: Remove info about Docker plugin being experimental
The plugin is enabled by default in 11.0.

Task-number: QTCREATORBUG-28996
Change-Id: Id17d484c66b46a1a70c549c4a6cdbff6e32189bb
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-06-14 11:35:13 +00:00
David Schulz
4f01ac4bdf Python: exclude the project file from the list of files to save
Amends 8d733f95e6

Change-Id: Ia9d1f29dd85a9560f4fe4e808cba625f1b24ad2c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-06-14 11:21:09 +00:00
Marcus Tillmanns
6e64a75cb7 Terminal: Fix base Environment
Change-Id: I509333df419f88b922dd69a4ee6484f2c809c31d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2023-06-14 10:15:03 +00:00
David Schulz
32c97a10d0 TextEditor: fix painting editor overlay in blocks with preedit text
Task-number: QTCREATORBUG-29134
Change-Id: I7049422688fccb421984463e4114546533da55cb
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-06-14 10:05:21 +00:00
David Schulz
827d6e66f8 Editor: only paint the preedit cursor
Task-number: QTCREATORBUG-29134
Change-Id: Ia44b0c8ddc88da7b64527fea806139726d57243a
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-06-14 10:05:16 +00:00
David Schulz
9091c99429 TextEditor: correctly highlight preedit text
Fixes: QTCREATORBUG-29134
Change-Id: I8c5cdab8c5b2e5a2380c9e4aeadaf1bd72e60e09
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-06-14 10:05:12 +00:00
Leena Miettinen
196245c8f6 Doc: Add conditions to hide broken links in the QDS Manual
The linked topics are not included in the QDS Manual.

Change-Id: If2bfb1dbc4478a924e56f6dcce840a80c83f19e8
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-14 06:53:07 +00:00
Eike Ziller
cf90e478e6 Doc: Fix documentation about (widget) Designer plugins
- fix the plugin location for the three platforms
- Qt and Qt Creator use RPATH on macOS since a longer while, which
  removes the need to fix library references with
  otool+install_name_tool
- clarify the paragraph on compatibility

Change-Id: Id7e011e061cff578398a83e9f54aec0a25ebdc4c
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-06-14 06:25:08 +00:00
Eike Ziller
c35dca17b8 Some more tr fixes
- avoid manual line breaks
- fix plural
- add some translator comments
- explicitly name an output pane
- use imperative for placeholder text
- it is a Markdown editor nowadays, not a viewer

Change-Id: I8418cfe0294c028b7d873305db0af4c25bc1097f
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-14 06:10:53 +00:00
Eike Ziller
4e73069358 Debugger: Add missing full stops and quotes
And de-argumentify a string that is easier to handle as two strings.

Change-Id: I1ba5d86ae870adb107dd5b0a70c6492f1cacafde
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2023-06-14 06:10:09 +00:00
Eike Ziller
33449bc880 Add full stops to various error messages
Change-Id: Ic4e07c5063a2e42af643faa4a5acb8445b12d6a1
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-06-14 06:09:54 +00:00
David Schulz
37433c1897 Editor: do not set the viewport margins if they have not changed
Change-Id: I01adabc52e47e8a47aff0f5dc2b580066e51307c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-14 04:58:49 +00:00
Eike Ziller
a6f2ee5b8c Python: Tr fixes
Add missing colons, quotes and full stops, and don't use book style
capitalization for labels.

Change-Id: If338922c7221eac498612ad5a152f24cd921e884
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-06-13 13:46:09 +00:00
Eike Ziller
7a605e9a59 Consistently use "Callgrind" and "Memcheck"
Change-Id: Ib9727153fcf653cf11b07592639f544a856a8ad9
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-06-13 13:45:45 +00:00
Cristian Adam
4d77487382 GitHub Actions: Use major version changelog also for pre-releases
Amends 332c47ba69

Change-Id: I08057e9d75b2900b829c225bf1e73f3ae82737d1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-13 13:05:30 +00:00
Christian Kandeler
39d9edbddf ProjectExplorer: Fix off-by-factor-of-100 bug
...when serializing the output panes' "max char count" setting.
Introduced in c898047880.

Change-Id: I0ed920efe3ed5b036b60b86ae9619ad9c154955e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-13 11:53:50 +00:00
David Schulz
c547c8615f TextEditor: optimize setting refactor markers
emitting requestBlockUpdate is not for free so limitting it to blocks
that have changed improve the performance notable for documents with a
lot of refactoring markers.

Change-Id: Ie288a367d1d1d6a9f4359e37ff8486a1dfe36752
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-13 11:52:00 +00:00
Leena Miettinen
590cdf4f61 Doc: Describe managing packages with vcpkg
Fixes: QTCREATORBUG-29221
Change-Id: I2b06e9b0c3641b021309afc7546e7f92a52a201f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-06-13 11:39:26 +00:00
Cristian Adam
332c47ba69 GitHub Actions: Do not fail for missing change log file
When using special tags e.g. beta, rcX, the change log file might not
exist.

Change-Id: I87a4b14f5a00f510763c41d189b815f9f503f90d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-13 09:56:19 +00:00
David Schulz
4481686909 TextEditor: improve performance of painting indent depth
Avoid asking the indenter for the visual indent depth since some
implementations are not cheap and might even cause file io. Fall back to
the default detection.

Change-Id: Ic85d134fc29a0599768ac05c306b8593e83db327
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
2023-06-13 09:05:21 +00:00
David Schulz
e24be95601 TextEditor: prefilter refactor markers before painting
This prevents calculating the block bounding rect for blocks outside of
the cliprect.

Change-Id: I416f1e6f71ae7e87fcc208f3eb3eb69300c9a1f8
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-13 09:05:15 +00:00
David Schulz
f782399789 TextEditor: prefilter overlay selections before painting
This prevents calculating the block bounding rect for blocks outside of
the cliprect.

Change-Id: I4a7311c3f41cab329098f6dfc122d60bd89d215d
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-13 09:05:09 +00:00
Marcus Tillmanns
8e16822d73 Terminal: Close Terminal.app window automatically
Change-Id: I6756c55b644e0db55b6d0b7ca892a890805e7285
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-13 09:02:24 +00:00
Jarek Kobus
a4c406d4a1 TaskTree: Make docs consistent when referring to functions
Always add brackets after function name.

Change-Id: I586e82078cad6e319ea5d983437b8f8c7813f63d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-06-13 08:48:35 +00:00
hjk
0415bea736 Tests: gtest unittest: improve compilability
... with recent (namespaced) Qt dev.

[...]tests/unit/unittest/3rdparty/googletest/googletest/include/gtest/gtest-matchers.h:184:14: error: invalid conversion from 'const char*' to 'ushort' {aka 'short unsigned int'} [-fpermissive]
In file included from /data/dev/qt-6-ns/qtbase/include/QtCore/qstring.h:1,
                 from /data/dev/qt-6-ns/qtbase/include/QtCore/QString:1,
                 from /data/dev/creator-out/src/libs/utils/smallstringview.h:9,
                 from /data/dev/creator-out/src/libs/utils/smallstringliteral.h:8,
                 from /data/dev/creator-out/src/libs/utils/smallstring.h:8,
                 from /data/dev/creator-out/src/libs/utils/smallstringvector.h:8,
                 from /data/dev/creator-out/src/libs/utils/smallstringio.h:6,
                 from /data/dev/creator-out/tests/unit/unittest/gtest-creator-printing.h:7,
                 from /data/dev/creator-out/tests/unit/unittest/googletest.h:17,
                 from /data/dev/creator-out/tests/unit/unittest/externaldependenciesmock.h:6,
                 from /data/dev/creator-out/tests/unit/unittest/modulescanner-test.cpp:4:
a/dev/qt-6-ns/qtbase/src/corelib/text/qstring.h:1006:61: note:   initializing argument 2 of 'bool Ns::operator==(const Ns::QString&, Ns::QChar)'
[104/1218] Building CXX object src/plugins/coreplugin/CMakeFiles/Core.dir/locator/executefilter.cpp.o^C

Change-Id: Id8d4533b9e53d7aa81edc64a99df31dd1d6ac5bf
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-06-13 08:41:23 +00:00
David Schulz
87d1865f99 Copilot: ignore invalid or empty suggestions
Change-Id: I6765814ec74b456ad1bb1392472d9d488357582e
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-06-13 08:40:30 +00:00
Artem Sokolovskii
6a20e588bf ClangFormat: Use pre-existing code style settings
Instead using of default code style settings, this commit
modifies the ClangFormat plugin to use the code style
settings that were set before applying ClangFormat.
By doing so, we preserve the previously defined code style.

Fixes: QTCREATORBUG-29185
Change-Id: I347d44d5ed49a2c50e130a983b62c844c8964391
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-06-13 08:10:46 +00:00
Marcus Tillmanns
2edaf459bd Utils: Support relative path for PtyProcess
Change-Id: I8af96e51a4b75c192f5fab339449f4d07b1a040a
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-06-13 07:40:41 +00:00
hjk
ddc30f4b9f GenericProjectManager: De-QObjectify GenericBuildConfiguration
Change-Id: I29ae16c04f17a134363a64532cc160d58127f34d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-13 05:36:45 +00:00
hjk
05294ad701 Meson: Build page optics
Align form, remove unwanted padding.

Change-Id: Ia0f8108a8a8d68df4eb7326de813223b2bd23df9
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-06-13 05:36:10 +00:00
Christian Stenger
b97698edfc SquishTests: Adapt test for Qml debugging
Change-Id: I86271f5e204ef7532b804b53b2cfba9c3ae823d0
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2023-06-12 14:03:17 +00:00
Cristian Adam
42fff6e27e CMakePM: Add support for block/endblock functions
The block() / endblock() functionatlity has been added to CMake version
3.25.

See https: //cmake.org/cmake/help/latest/command/block.html

Change-Id: If6458b84c3e30c4d4d8cbd3d3f1c661e8ffa869c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-06-12 13:39:59 +00:00
Robert Löhning
fe9e5cc42f SquishTests: Get editor's real name while it is still visible
...or Squish might find something unrelated.

Change-Id: I08f9077ac3f919eeeb641eab70738e052bc60cee
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-12 13:33:40 +00:00
Robert Löhning
9f89b87517 SquishTests: Update tst_WELP04
Change-Id: I0fd52a1ab0538765736927bcca32e5b1e26f6c1d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-06-12 13:32:57 +00:00
hjk
904fa0aca3 CMake: Check for CMakeCache.txt also in remote builds
Change-Id: Ide179188a7fbd10b122a6bb34de08f943324133f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-12 13:18:57 +00:00
hjk
f19481e6c7 Utils: Make FancyLineEdit placeholder validation optional
Validation makes only sense if the placeholder is similar to
the actual contents, like a file path, not for explanatory text.

Amends 3dcdbe9.

Change-Id: I81ff7a3cf72f28c0fe49824b574b0997ada2d09b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-12 13:17:17 +00:00
hjk
d0cf49db47 Debugger: Handle some Qt deprecation warnings
Change-Id: I93c9f91642bc5f5bd43ebb80cb489782978db327
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-12 13:16:07 +00:00
hjk
27762d2dcf QmlDesigner: invert check on QmlDesignerProjectManager::activeTargetChanged
The pointer is accessed unconditionally directly afterwards.

Change-Id: Ie6080fc35bc05891cc103fcd32e032d72687230a
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2023-06-12 13:14:46 +00:00
Cristian Adam
9c8acbf40e CMakePM: Fix MSVC assertion with tests/manual/cmakepresets
Change-Id: I5f06d69b444e453456f2dd9822006b535d3f7843
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-06-12 13:10:30 +00:00
Marcus Tillmanns
d491faf94a Utils: Send ack from Process stub
Allow the server to listen for command results.
Fixes Qt Creator hanging when stopping application
being debugged.

Change-Id: Ia175b1bb1836b5593bc073394fa152923e1dda28
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2023-06-12 12:13:02 +00:00
Christian Stenger
97a97b3019 QmlJS: Fix initializing static analyzer
...when using a customized analyzer that has no customization.
If there is no customization we do not store the value inside
the settings, so we get empty lists instead of the default
lists for disabled messages.
Amends 427640063e.

Change-Id: Idea560176b0a9caa93dca7a3a2d01cc3aa3a6d2f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-06-12 12:05:04 +00:00
hjk
860b204e38 Revert "Android: Handle some Qt deprecation related warnings"
This reverts commit a69ee57396.

Too early: QDomDocument::ParseResult was only introduced in Qt 6.5.

Change-Id: Ia2590a3f8ce5b9edec21b222d5c9211572563f97
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2023-06-12 11:59:59 +00:00
hjk
3d4621c531 Utils: Fix compilation with namespaced Qt
Change-Id: I5e9ce4a637672fece8884d88c87fc8aaee7d9cc3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-06-12 11:50:29 +00:00
Eike Ziller
890debd658 Fix lupdate issues
Some failures to find the right tr() without fully qualifying

Change-Id: I6566786dc93b07dcf01f3bdce83ebd404f4fd6e8
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-06-12 10:25:21 +00:00
David Schulz
a0969feadf Python: use one line for each file in the template project files
Change-Id: I4fd921b11a488346cd3b53c9953881111c664764
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2023-06-12 09:54:24 +00:00
hjk
a69ee57396 Android: Handle some Qt deprecation related warnings
... in manifest editor.

Change-Id: I7e33f6e96ef88c8a5fb3f5d509bccab9ceebe799
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2023-06-12 09:45:46 +00:00