Commit Graph

67787 Commits

Author SHA1 Message Date
Tim Jenssen
f323a80d57 qmlproject: no need to use raw pointer here
Change-Id: Idbd97a7ab4a78d3e56b3f444b7b48111d7823dd6
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2020-07-20 16:56:13 +00:00
Tim Jenssen
2fc89375c6 qmlproject: act on disabling multiLanguageAspect
Change-Id: I2f13090f8708a5cb46bf21fb0e855d8ca9d906e7
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2020-07-20 16:56:04 +00:00
hjk
0c984b3f84 RemoteLinuxCustomCommandDeploymentStep: Add history and macro expander
Change-Id: Iadb7d16bce8ec5026acdff00016ee2d1dc4791b2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-07-20 15:03:33 +00:00
Assam Boudjelthia
6d5849e31e Android: explain what the downloaded openssl libraries are used for
Task-number: QTCREATORBUG-24074
Change-Id: I467d59e8c30d629ed532ad9311f65a1b30fd45a5
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-07-20 14:05:43 +00:00
Orgad Shaneh
1de8fe8349 Debugger: Do not reset sysroot if override is not set
Change-Id: Id489d6e8e0102bb8594470cc5a454c2e2c2afadb
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-20 12:10:36 +00:00
Christian Stenger
a3a2c2f691 Help: Fix warning
The operator is not static otherwise it would be
just an unused function.

Change-Id: I01b8764adfdf8908d07362357211d64b55ea941e
Reviewed-by: hjk <hjk@qt.io>
2020-07-20 10:24:56 +00:00
Christian Stenger
6e29adaae7 QmlJS: Replace QRegExp by QRegularExpression
Task-number: QTCREATORBUG-24098
Change-Id: I70157bcbee67cf493e28b5bad97248877a25e5c6
Reviewed-by: hjk <hjk@qt.io>
2020-07-20 10:23:52 +00:00
Christian Stenger
9dec1680cc PCH: Replace QRegExp by QRegularExpression
Change-Id: I2b0e88acae26ab71ba72cab862f021882e56ba19
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-07-20 10:23:39 +00:00
Christian Stenger
deda9b7e37 QmlJSTools: Remove unused include
Change-Id: I4bc61fdebd9b2c20497e7569cdb5f5000317f22d
Reviewed-by: hjk <hjk@qt.io>
2020-07-20 10:23:26 +00:00
Christian Stenger
5d3828af4b Shared: Replace QRegExp by QRegularExpression
Task-number: QTCREATORBUG-24098
Change-Id: If61fc5ac5ef6e9d807df94b9e85ef98a549050a3
Reviewed-by: hjk <hjk@qt.io>
2020-07-20 10:23:10 +00:00
Christian Stenger
eb52982c9d Tests: Replace QRegExp by QRegularExpression
Task-number: QTCREATORBUG-24098
Change-Id: I8649423fc69faadad324bc3bb51004633fa7cc4d
Reviewed-by: hjk <hjk@qt.io>
2020-07-20 10:22:56 +00:00
Christian Kandeler
fed5a85110 Debugger: Remove name demangler
Never been used, completely outdated, fails autotest.

Change-Id: I2c1808b4a66e9abdb839670eeae3e5226c7246ba
Reviewed-by: hjk <hjk@qt.io>
2020-07-20 08:34:52 +00:00
Christian Kandeler
014a57c764 Utils::Environment: Fix NameValueDictionary::diff()
We missed the case where only the enabled/disabled status was different.

Change-Id: Ic23e15f6843015feff2242cb67444dfa17cc5f2d
Reviewed-by: hjk <hjk@qt.io>
2020-07-20 08:34:27 +00:00
Christian Kandeler
3b14051db5 CPlusPlus: Do not ignore namespaces
... when comparing type names. For instance, this is relevant when
deciding whether to offer the "Apply signature changes" refactoring
action.
Add fallback code for function lookups, which was relying on the relaxed
semantics for parameter types.

Fixes: QTCREATORBUG-9856
Change-Id: I2001b77034ff15e96a23e3359d19654d0f43f60b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-20 08:24:06 +00:00
David Schulz
9026dd0033 Debugger: prefer newer debuggers on initialization
Change-Id: If8a6af6b00006eca68ddcb49f900f0135979be22
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-20 04:37:47 +00:00
David Schulz
e978f59654 Editor: set default text foreground color explicit
Amends 9182d4eda7.

Fixes: QTCREATORBUG-24352
Change-Id: I16171874cf2f2e9fde95b404f7510a502a39f26e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-20 04:37:21 +00:00
Orgad Shaneh
c0c5773345 Git: Add new files with --intent-to-add
Sometimes the file is modified after adding it, either by Qt Creator itself
or by the user.

Running Diff on such a file may look strange. Instead of showing the entire
file, it shows the diff since it was added with its initial content.

Fixes: QTCREATORBUG-23441
Change-Id: I712cc574053f39753250685aec148d2b6d7db192
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2020-07-19 03:59:45 +00:00
Eike Ziller
32af4d9e70 Fix lupdate issues
Change-Id: I950d2f53fcc03ba447140f3c6957422ca40111b5
Reviewed-by: hjk <hjk@qt.io>
2020-07-17 18:01:45 +00:00
Christian Kandeler
df0ffd8bb8 CPlusPlus: Fix handling incomplete macro invocations
It looks very much as though the original author simply forgot to add
that return statement.

Fixes: QTCREATORBUG-23881
Change-Id: Ie93d2451bf1b491d01137285f983d657133c81c3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-17 14:40:08 +00:00
hjk
536dd779fc Core: Improve handling of long output chunks
Single chunks exceeding the limit were truncated and then shown
in a single line, potentially resulting in only a few chars if there
was a newline close to the cut-off point.

Now, don't restrict to a single line in that csae.

Additionally elide in the middle, assuming this is a better compromise
than truncating at either end.

Also, make the truncation more obvious, and mention the amount of
elided characters.

Change-Id: I850e2833e7f1f8be0f584d8e4439dd1a64f851d0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-07-17 12:44:41 +00:00
Marco Bubke
da29ff0433 QmlDesigner: Fix prefiew size
Change-Id: I126c50209f2849d0212f0d295b35cba0f25f2728
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-07-17 12:24:40 +00:00
Marco Bubke
5b63599473 QmlDesigner: Bump up database version to 2
Change-Id: I4b4c4c46c3bd17d2b4f4f80b8fb97f5716261f77
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-07-17 12:24:33 +00:00
Venugopal Shivashankar
4db32606e0 Doc: Add Qt for MCUs video tutorial
The youtube video demonstrates how
to develop your first app on NXP
i.MX RT1050 device.

Change-Id: Ie706a6ff6a5395816a5ec9daef13c0baad1daf2d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-07-17 08:47:54 +00:00
Christian Kandeler
f905fcea71 Wizards: Fix function parameter type in CppToolsJsExtension
We did not notice because the JS array was auto-converted into a string.
Amends bcc2b5e08d.

Change-Id: I06ee43f78cb3081bdff0a02f8d446326a01bc2d1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-07-17 07:46:08 +00:00
hjk
9b0b86297e CppTools: Qt6: Drop use of QTextStream::setEncoding from CppFileSettings
This now requires license templates file to be Unicode compatible,
effectively restricting it to plain ASCII in non-Unicode codebases.

Task-number: QTCREATORBUG-24098
Change-Id: I713fed1ddb288360abbdbb40c6ca67444eb62ef3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-07-17 07:33:48 +00:00
Eike Ziller
a065175d58 CMake build: Fix configuring with CMake 3.10 and external yaml-cpp
CMake 3.10 does not allow using target_include_directories with
INTERFACE on imported targets.

https://gitlab.kitware.com/cmake/cmake/-/issues/15689

Fixes: QTCREATORBUG-24356
Change-Id: I2427276f0851010cda2321c45eff0628713af2ff
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-07-17 06:34:35 +00:00
Eike Ziller
24e7d042ba Github: Set macOS deployment target to 10.13
Change-Id: I4b8b29a083b3b0884326c8a96aad9d80f2eebf16
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-07-17 06:31:11 +00:00
Eike Ziller
ded5c64d53 Fix deployment of clazy-standalone
On Linux and macOS, clazy-standalone links against some dynamic
libraries which we need to ship.

Fixes: QTCREATORBUG-24344
Change-Id: I4946d2ae22fc9363445e6a3eecb8d9e40be5ef0e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-17 06:23:03 +00:00
hjk
cc7caee133 FakeVim: Fix case insensitivity handling for forward searching
Change-Id: I1f5b13022f3ae06916434b48cf3c6ba6d4722746
Reviewed-by: Lukas Holecek <hluk@email.cz>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-17 06:17:38 +00:00
hjk
4eaacced6d Debugger: Fix QV4 dumper test name
Change-Id: I561e088c7b789903b0fb6867a2a2b5edf8eef63f
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-07-17 04:59:26 +00:00
Christian Stenger
2419725466 GlslEditor: Update language spec
Task-number: QTCREATORBUG-24068
Change-Id: Id49f341881262b2398766513720ed38ba5c0deeb
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-07-17 04:45:01 +00:00
hjk
65838ae510 Help: Use QMultiHash in docsettingspage
Task-number: QTCREATORBUG-24098
Change-Id: I0f9f04182dfc3608a0b77231d5a546e6e68f2a44
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-16 13:51:51 +00:00
Christian Stenger
1e0b82e77d CppEditor: Fix possible wrong location for function definitions
Having no namespace when inserting generated functions may insert
explicitly at the end of a header which is not always desired as we
need to take care of e.g. header guards as well.

Change-Id: I3b154ae936a96f2f8e7e34cda6b5bcdfcbc83faf
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-16 11:11:58 +00:00
hjk
d3d683ec63 Core/TextEditor: Replace QTimeline::setCurveShape
... by setEasingCurve().

Deprecation for 5.15.1/removal in 6 is looming.

Task-number: QTCREATORBUG-24098
Change-Id: Ic116cf78b8468f03f6b01e0b7af56584289589cc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-16 10:33:21 +00:00
hjk
babc1006f2 Various Qt6 porting
Rename QHashSeedType to QHashValueType and use it also for return
values.

Use qHashMulti directly instead of continuing using temporary QPairs.
Avoids ugly namespace tricks to find the new pair overloads, and is
actually clearer.

Classes used in signals cannot be forward-declared.  ...

Change-Id: I22450a0c642437a43f876e8e89cc8788fff3db61
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-07-16 09:45:43 +00:00
Christian Kandeler
b20fa85bc0 ClangCodeModel: Fix race condition
... between semantic re-highlighting and document visibility update.
Make semanticRehighlight() a no-op if the document is not currently
visible, and call it explicitly on an editor change.

Fixes: QTCREATORBUG-24290
Change-Id: Ife61f61d3fb82e8b283bf93ab77d16517f6c6f9c
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-07-16 07:48:24 +00:00
Christian Stenger
52a4a83154 Debugger: Remove ConsoleViewStyle
This interferes with the general theming of the output pane
and the purpose is no more obvious.
This patch fixes using a wrong scrollbar style on the
QML Debugger Console.

Change-Id: I4dfeecb77746b345f35809dd5e1bcb27a0fcd604
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2020-07-16 04:26:14 +00:00
Christian Stenger
ec65d43b65 AutoTest: Fix auto expansion of test results
We may add items that have sub-items already, so apply
the expansion to them as well if necessary.

Change-Id: Ibff4433c5a7c0a110461e46998cd39864f4ec929
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-07-16 04:25:53 +00:00
Christian Stenger
9d16d735ab Debugger: Do not send empty message on shutdown
This triggered a soft assert in DebuggerEngine::showMessage()
and cleaning up the status bar is not necessary at all.

Change-Id: I12d3d5cbc79f178af58ecb0a5c7a3130c880bdad
Reviewed-by: hjk <hjk@qt.io>
2020-07-16 04:25:35 +00:00
Tim Jenssen
2a0ca04be0 qmlpreview: remove unnecessary connect
Change-Id: Ib846256c0eef2d2cccfd46a9ac27dbbf312eef8b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-07-15 21:38:09 +00:00
Tim Jenssen
e95a95cdfe projectexplorer: add availableQmlPreviewTranslations()
Preparation for a test translations feature.

Change-Id: I1a7ccecab803f5838cd765b7dca99bcf5bb9e8a1
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-07-15 21:37:50 +00:00
Christian Kandeler
b17d098d08 EnvironmentWidget: Fix text for append/prepend operations
Change-Id: I6203b281d2871a667d027518e6110440bd11e8e9
Reviewed-by: hjk <hjk@qt.io>
2020-07-15 13:32:55 +00:00
Christian Kandeler
daf444a086 Wizards: Improve the UI for showing the list of platforms
A plain string like "Android Device Desktop" is hard to parse,
especially when there's unfortunate line wrapping.
Use a proper list.

Fixes: QTCREATORBUG-24288
Change-Id: I560ef5e14f0775ab233b1258b04a1c39414be51c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-07-15 13:32:24 +00:00
Michael Weghorn
f01ed3e1a2 sdktool/CMake: Use C++17 to fix build (std::optional)
std::optional is C++17, so the build with master as of commit
6a811936d8 on Debian testing
(amd64, GCC 9) previously failed as follows:

[ 86%] Building CXX object src/tools/sdktool/CMakeFiles/sdktool.dir/sdktool_autogen/mocs_compilation.cpp.o
    cc1plus: warning: <<SRCDIR>>/src/libs/3rdparty/syntax-highlighting/CMakeFiles/QtCreatorPchConsole.dir/cmake_pch.hxx.gch: not used because `__cpp_nontype_template_parameter_auto' not defined [-Winvalid-pch]
    In file included from <<SRCDIR>>/src/libs/utils/environment.h:32,
                     from <<SRCDIR>>/src/libs/utils/qtcprocess.h:28,
                     from <<SRCDIR>>/src/tools/sdktool/sdktool_autogen/YAZZEVSBVD/moc_qtcprocess.cpp:10,
                     from <<SRCDIR>>/src/tools/sdktool/sdktool_autogen/mocs_compilation.cpp:2:
    <<SRCDIR>>/src/libs/utils/optional.h:44:12: error: ‘std::optional’ has not been declared
       44 | using std::optional;
          |            ^~~~~~~~
    <<SRCDIR>>/src/libs/utils/optional.h:45:12: error: ‘std::nullopt’ has not been declared
       45 | using std::nullopt;
          |            ^~~~~~~
    <<SRCDIR>>/src/libs/utils/optional.h:46:12: error: ‘std::nullopt_t’ has not been declared
       46 | using std::nullopt_t;
          |            ^~~~~~~~~
    <<SRCDIR>>/src/libs/utils/optional.h:47:12: error: ‘std::in_place’ has not been declared
       47 | using std::in_place;
          |            ^~~~~~~~
    <<SRCDIR>>/src/libs/utils/optional.h:51:11: error: ‘optional’ does not name a type
       51 | constexpr optional<std::decay_t<T>> make_optional(T &&v)
          |           ^~~~~~~~
    <<SRCDIR>>/src/libs/utils/optional.h:57:1: error: ‘optional’ does not name a type
       57 | optional<T> make_optional(Args &&... args)
          | ^~~~~~~~
    <<SRCDIR>>/src/libs/utils/optional.h:63:11: error: ‘optional’ does not name a type
       63 | constexpr optional<T> make_optional(std::initializer_list<Up> il, Args &&... args)
          |           ^~~~~~~~
    In file included from <<SRCDIR>>/src/libs/utils/qtcprocess.h:28,
                     from <<SRCDIR>>/src/tools/sdktool/sdktool_autogen/YAZZEVSBVD/moc_qtcprocess.cpp:10,
                     from <<SRCDIR>>/src/tools/sdktool/sdktool_autogen/mocs_compilation.cpp:2:
    <<SRCDIR>>/src/libs/utils/environment.h:100:12: error: ‘optional’ does not name a type
      100 |     static optional<EnvironmentProvider> provider(const QByteArray &id);
          |            ^~~~~~~~
    make[2]: *** [src/tools/sdktool/CMakeFiles/sdktool.dir/build.make:65: src/tools/sdktool/CMakeFiles/sdktool.dir/sdktool_autogen/mocs_compilation.cpp.o] Error 1
    make[1]: *** [CMakeFiles/Makefile2:14801: src/tools/sdktool/CMakeFiles/sdktool.dir/all] Error 2
    make: *** [Makefile:141: all] Error 2

Change-Id: Icf33f04147ebf22db803be480f9be052508adec6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-07-15 13:19:52 +00:00
Knud Dollereder
1cb1298a6d Fix a crash in the curve editor
when ICore::dialogParent returns an unrelated dialog

Change-Id: Ifd0facec3b8b97f6fba61904c2a729e46622e515
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2020-07-15 13:17:02 +00:00
Christian Stenger
6a811936d8 Tools: Replace QRegExp by QRegularExpression
Task-number: QTCREATORBUG-24098
Change-Id: I16d8928689d208c13776b76cabd663c006a0eb51
Reviewed-by: hjk <hjk@qt.io>
2020-07-15 12:08:09 +00:00
Vikas Pachdha
443f9d1619 AssetExporter: Add display name to the exported json
This shall be used for layer names

Task-number: QDS-1556
Change-Id: I3ffce208d830f291de48105ec9cf92e76692f8bd
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-07-15 11:16:04 +00:00
Vikas Pachdha
f2ea02561e AssetExport: Assign export type component to QML components
Task-number: QDS-1556
Change-Id: I99c0e0219aa040b74794ab28cf0da7970a81663a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-07-15 11:15:42 +00:00
Vikas Pachdha
f1d5e56f09 AssetExport: Fix metadata schema
Task-number: QDS-1556
Change-Id: I13aef8af5094cf6a5c3f53f92643fd23492922d8
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-07-15 11:02:45 +00:00
Christian Kandeler
1f5c89b111 Environment: Use Append and Prepend operations
... for "Append Path" and "Prepend Path", respectively.

Fixes: QTCREATORBUG-24105
Change-Id: If40c28ffcb0c61b970d0b3014cd5d199110baa52
Reviewed-by: hjk <hjk@qt.io>
2020-07-15 09:19:33 +00:00