Commit Graph

66760 Commits

Author SHA1 Message Date
Kai Köhne
ca992488c0 Fix use of translations in Qt wizards for Qt 6
qt_create_translation was introduced in Qt 5.15. But we also still
support older Qt versions, so we cannot use it unconditionally.

Fixes: QTCREATORBUG-25070
Change-Id: I81de7e19b42e0e8cb9cb23e14909e71c534dc0da
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2020-12-11 16:48:19 +00:00
Leena Miettinen
428ac96dd1 Doc: Describe using Qt Bridge for Figma
Task-number: QDS-2525
Change-Id: I5c574c291bfb526452a2429a91920a875e1573a5
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-12-11 16:26:06 +00:00
Cristian Adam
4ae5516453 CMakeProjectManager: Use canonical paths for compiler match import
On Linux (Ubuntu 20.04) Qt Creator would use /usr/bin/g++ as
compiler for C++. CMake would pick /usr/bin/c++ as C++ compiler.
Both of them are symlinks to /usr/bin/x86_64-linux-gnu-g++-9

There is no need to create imported kits for something which
is the same compiler.

Fixes: QTCREATORBUG-25069
Change-Id: I90e0f7b1977ace3f7995ce09f4b3fcfa64d02b72
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-12-11 16:17:30 +00:00
Oswald Buddenhagen
20a3eae86f fix memory leak in AndroidSdkDownloader::extractSdk()
put the process on the stack, so we don't need (and fail) to free it.
while at it, remove the pointless close() call.

amends f46099d2.

Change-Id: I4025691bebf2899efe006ee83012aefbb8797a64
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2020-12-11 14:54:47 +00:00
Oswald Buddenhagen
3201d91624 process synchrounus process output in every case
there is no logical difference between a hung or crashed process and one
that exited non-zero.
blocking execution already behaved that way.

Change-Id: Ifb80d050f9771cb9ea4021329ffef8e646e43ac9
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-12-11 14:54:07 +00:00
Oswald Buddenhagen
891c797c4b simplify feeding synchronous processes
QProcess is fully buffered, so there is no point in trying to feed it
chunk-wise.

amends 25264d9b.

Change-Id: Ie1a32a6ac56f8e21a452b26dfaca4237d3f08d9f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-12-11 14:53:36 +00:00
Oswald Buddenhagen
65fb83089e fix waiting in SynchronousProcess::runBlocking()
the conditions on the waitForFinished() calls were inverted. the visible
effect of this was that 'Hang' was never reported.

Change-Id: I9937fce58189eebf891000840597158b4bffd028
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-12-11 14:47:00 +00:00
Oswald Buddenhagen
ef3821c6b9 fixup comments in SynchronousProcess::run*()
one instance had drifted away from its relevant location, while another
instance was a bogus c&p.

Change-Id: I0148f08ca2741efd82bf10a042fe341bafcfc087
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-12-11 14:45:46 +00:00
David Schulz
1981d90f39 Dumper: fix QMetaObject detection for Qt6 on windows
introduced by 9b8493314dd77f3e96b353187816bb7ef4dedbb5 from qtbase

This change does not address all usages of super data in the dumper, but
enables dumping children.

Task-number: QTCREATORBUG-24098
Change-Id: I813dacfa719dd6ca367e305fadcc8f2b8ee45425
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-12-11 14:01:20 +00:00
Venugopal Shivashankar
1f41c53f0f Doc: Update the MCU options dialog screenshot
In addition, document the new option that
enables automatic kit creation for all the
available targets.

Change-Id: Ic9168f032472bdd98b9b026934476e606a9ab94e
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-12-11 13:19:18 +00:00
Leena Miettinen
b09cc04c87 Doc: Replace external links to Qt docs with internal ones
Where possible, link to sections about QML types within the manual.

Task-number: QDS-2744
Change-Id: If12e8ce0261258c0c7e4b293e2cd45ad959c7882
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-12-11 12:54:55 +00:00
hjk
c4c55955e4 Debugger: Drop some too clever logic from ValuePattern matching
Change-Id: I6e1c89e3637e4408a23584bf71fcf8e2c4d29d7f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-12-11 12:48:23 +00:00
hjk
b288cb6706 Debugger: Fix template type alias handling for LLDB
Case like 'template<typename T> using TVector = std::vector<T>'
end up only as 'TVector' in the debug info. This is unsuitable
as an id in our type info caching as this would only allow one
type layout for all specializations, which is not the case for
e.g. std::vector<bool>.

The solution is to mangle the target type into the id, as already
done for GDB.

This makes the Typedef2 dumper test pass.

Change-Id: I11538bbf6431f61a11c18366a2a2b4911cdc2e0e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-12-11 12:20:23 +00:00
hjk
d4ed07eb87 Debugger: Change/improve LLDB display of enums in some cases
This fixes the Internal2, EnumFlags and EnumInClass tests on Linux.

The values lose now the previously hand-crafted Class:: prefixes,
but the context is clear from the type column, and it's what LLDB
developers (and potentially users) consider normal.

Change-Id: I09e41f7b4fb4f078ef3f535fe650d06e7c2a0331
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2020-12-11 11:37:11 +00:00
Eike Ziller
0a20b8e7de cmake build: Fix PLUGIN_RECOMMENDS
Use the right variable name, and syntax for iterating the list.
Fix plugin configuration order, so targets are found.
Fix misspelled plugin name.

Also remove unused and wrong "EXPERIMENTAL" option.

Change-Id: I77cc5d12ebdaa8bcd0315dd830a9435c648b2ba3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-12-11 11:07:14 +00:00
Knud Dollereder
58ce987314 Do not use the rootItemRect for zoom all
since this is set to null - indirectly from the showEvent of FormEditorWidget.
Use the instanceBoundingRect of the rootNode instead.

Fixes: QDS-3316
Change-Id: Ia156e5b675bc1c517c4b3f5c640b22d9c47bc117
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-12-11 11:02:26 +00:00
Miikka Heikkinen
217d0e5832 QmlPuppet: Fix crash in Qt6 when root item is zero size
Change-Id: I45dc10a412a7e4cfb799afb47e70e506162b286a
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2020-12-11 10:50:11 +00:00
Ivan Komissarov
e60fc5084d Update Qbs submodule to the top of 1.18 branch
Change-Id: I7d758667860d20a01d657801fc380ef62d18058e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-12-11 10:47:41 +00:00
hjk
b3ad621e0a Debugger: Fix Bitfield dumper for LLDB with Python 3
Strangely enough, this issue did not trigger with GDB for either
Python 3 or 2.

Change-Id: I0e5cf7ce0a8605f105bff549634aa014ef1f8403
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-12-11 09:45:42 +00:00
Eike Ziller
919ffcb0fb cmake build: Add option to build against system SyntaxHighlighting lib
Enable/disable our own KSyntaxHighlighting by default
depending on the availability of KF5SyntaxHighlighting.
If that is available, it still is possible to turn the building
and using of our own KSyntaxHighlighting copy on by enabling
BUILD_LIBRARY_KSYNTAXHIGHLIGHTING.

Fixes: QTCREATORBUG-25076
Change-Id: I3545fc12d87572d7eb6f5977994b081ff7ea3880
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-12-11 09:37:23 +00:00
hjk
14035584d8 Debugger: Fix CharArray dumper and test for LLDB
Change-Id: If12936fa863633b1ca85e712f8395e8ab4a0d69c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-12-11 09:35:37 +00:00
hjk
5cf60fc38f Debugger: Fix LLDB message parsing in dumper tests
Was off by one, swallowing the first character of the message.

Change-Id: I736cadda2cb6d9e3703d276b631e574c498af874
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-12-11 09:35:01 +00:00
Johanna Vanhatapio
598bcc8f1e Doc: Fix a typo in the telemetry topic
Change-Id: I79cc32baefad3c80f31a7ce27dda373499571ece
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-12-11 08:38:26 +00:00
Leena Miettinen
5179dd2400 Doc: Add "Technical Support" topic to QDS Manual
It opens from Help > Technical Support.
Make the content more useful to QDS users and hide
the developer information from QDS Manual.

Fixes: QDS-3307
Change-Id: I01eec99b85ecd6d2f2d2c970370e560d6719ee75
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-12-11 07:50:38 +00:00
Christian Stenger
c6b23f903a Tests: Enable callgrindparser tests for cmake
Change-Id: I2fed0477e9d35e5978a728ed8fee40daca16b565
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-12-11 05:44:38 +00:00
Henning Gruendl
4a1de1f1e8 QmlDesigner: Fix component template label eliding
Change-Id: Ib537d5970857cb8419e87446c208fa1c031651ee
Reviewed-by: Aleksei German <aleksei.german@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-12-10 21:22:26 +00:00
Miikka Heikkinen
20f11c961e QmlDesigner: Fix crash when 'Debug QML emulation layer' is enabled
Timer was accessed before creation in this case.

Change-Id: I8817043f1a875cb4c7c6cf8a1f4b398f78058509
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-12-10 18:27:36 +00:00
hjk
1ff6f27286 Debugger: Replace CheckType in dumper test
Use a ValuePattern(.*) instead to specify an uninteresting/unchecked
value.

This allows using of TypePattern in the same check, allowing to fix
a part of CharArray test for LLDB.

Change-Id: I3b8b209318d663290c02ce466e2a198d3a66832f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-12-10 15:47:52 +00:00
Ivan Komissarov
d07ce92d0d qbs: Fix installing docs
Change-Id: I4f58d639bced972243faf4161697ec4e0a4b0d56
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-12-10 13:34:30 +00:00
Leena Miettinen
ed56036ada Doc: Update supported Linux version
Task-number: QTCREATORBUG-24529
Change-Id: I5db8866e2b682c4d4b8cb15c046753c047848135
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-12-10 13:30:05 +00:00
Miikka Heikkinen
66e491be14 QmlDesigner: Reset puppet if shader property changes
Puppet reset is needed as changing shader makes no difference
if done after material initialization.

Change-Id: I67b0b4cca28b4636cc9acb1cd7446dfabc10e2ee
Fixes: QDS-3300
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-12-10 13:09:03 +00:00
Thomas Hartmann
d205778ec1 QmlDesigner: Fix import tracing
Change-Id: I8783627428a7cf78787f19d439fdadca157e9081
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-12-10 13:07:26 +00:00
Ivan Komissarov
6076da1d42 Update Qbs submodule to the top of 1.18 branch
Change-Id: Ib7a620ca265df75eedba622e8b4183036019214d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-12-10 12:36:29 +00:00
Christian Stenger
b4742c03db QmlDesigner: Fix compile of tests
Change-Id: I3bab23e47702904f1602963e0c843f8f45c8b8c4
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-12-10 12:03:26 +00:00
hjk
8d6ca33a7a Debugger: Remove more dead code in dumpers
Change-Id: If0a48377470b75a2d9c5d7f3cb47a492b9214791
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-12-10 10:55:20 +00:00
hjk
e7e0fa5745 Debugger: Remove create{Container,List,Vector}Item
Not used anymore.

Change-Id: I1d534a094717cfc44aea73e6b4ca948c088480ae
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-12-10 10:55:11 +00:00
Kai Koehne
33487984b9 Doc: Use version independent Qt link
or use direct links where possible.

Change-Id: I00d559ad53a95caf91c39985bd9fb5ea99f9aed7
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-12-10 10:48:25 +00:00
hjk
9c8c5b6363 Debugger: Strip inner typenames in pointer type lookup fallbacks
To compensate for a potential 'Foo*' vs 'Foo *' difference in
debug info.

Change-Id: I90e822f89bc13bdf7ffed30ee12a984a659aa38f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-12-10 10:22:47 +00:00
Christian Stenger
9c8768e752 Dumper: Remove some fallback code
..and unused or unknown variables.

Change-Id: I13d1d03fa09ef3952fe2cb3f4b257fb2882709f2
Reviewed-by: hjk <hjk@qt.io>
2020-12-10 10:21:34 +00:00
Thomas Hartmann
ad2699773d QmlDesigner: Set focus policy for 3D canvas
Otherwise the widget does not get focus.

Change-Id: I8209f85c375ff419d34397d9a9e1826d07b4e432
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2020-12-10 10:14:55 +00:00
Thomas Hartmann
c282551569 QmlDesigner: Track usage of flow tags
Change-Id: Id9e27c601dcb67e6758de51e8a1fcfd02b3ac6e5
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
2020-12-10 10:14:48 +00:00
hjk
eac85f8261 Debugger: Fix QObject property display with Qt 6
Task-number: QTCREATORBUG-24098
Change-Id: I6e1013fe39208ef6e9ba792e6b2fb745eb5e3108
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-12-10 09:59:58 +00:00
Thomas Hartmann
ca33079e91 QmlDesigner: Add QTC_ASSERT
In corner cases m_nodeInstanceServer can be null.
This should be considered as an error, but there is
no reason to crash in this case.

Change-Id: If2b5e11b7d2462634ab8f9bce653bdbc5b3c8b45
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-12-10 09:58:29 +00:00
hjk
c902974423 Debugger: Simplify QObject parent dumping
Change-Id: I24fd6bf684a213c2e47978485442dd6c47073a7a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-12-10 09:54:08 +00:00
hjk
11d079a0fe Debugger: Partially fix QV4 dumper for Qt6
Just the 64 bit case, simple types.

Task-number: QTCREATORBUG-24098
Change-Id: If13e342c1fb419a026cdaa35b21483566e8494b7
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-12-10 09:32:13 +00:00
Miikka Heikkinen
757d3200aa QmlDesigner: Reset puppet if shader code changes
If a shader file inside the project is modified, reset the puppets to
update custom materials and effects that use the modified shader.

Change-Id: Ie81accf5f3029c31b49b65b5e1b53e1259a9b4eb
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-12-10 08:54:01 +00:00
hjk
276c0ae482 Debugger: Adapt QStandardItemDumper to Qt6
Task-number: QTCREATORBUG-24098
Change-Id: I1c21e6a1ee3db3532029638eedfcf58eead53424
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-12-10 08:52:49 +00:00
David Schulz
34dfbe73b6 Debugger: Fix QVector and QList dumper with incomplete template types
This can hapen when QList and QVector is used in split.

Change-Id: Idb48901854e373139a38670a3d811bf01aef1915
Reviewed-by: hjk <hjk@qt.io>
2020-12-10 08:50:36 +00:00
Cristian Adam
5b1cff753a CMakeProjectManager: Match only on Cxx and C languages on import
This way Qt Creator won't be creating imported kits on every import.

On Windows the language "RC" is not part of the kit languages and
would always discard valid matching kits.

Fixes: QTCREATORBUG-25069
Change-Id: Ib4ec323ebf514c82e5036f7d0123100a75f3ea10
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-12-10 08:20:53 +00:00
Leena Miettinen
4e806fc194 Doc: Add location of anchor buttons to tutorial
Fixes: QDS-3308
Change-Id: Ib177cfee01689ff51e6a4c56dce52857ac1f0705
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-12-10 07:36:31 +00:00