Commit Graph

67787 Commits

Author SHA1 Message Date
Eike Ziller
361884320a Fix installation of Qbs documentation
The Qbs build system uses an "option" and that overrides
a normal variable if there isn't already a cache variable.
So we need to write these variables to the cache.

Amends d07ce92d0d

Change-Id: I98a7e31f278d509f50e20537af9d574db71d2e9f
Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
2020-12-14 08:57:55 +00:00
hjk
77993e7b58 Debugger: Fix passing of extra parameters to LLDB dumper tests
As the others do. Fixes the WatchList dumper test.

Change-Id: Id1622f6d405e9e9c9b1f4b0124a7dca74f7e3019
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-12-14 08:55:33 +00:00
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
Christian Kandeler
29ddb3bcdb ProjectExplorer: Allow to schedule a build/run during a project parse
Once we parsed the project initially, subsequent parses typically do not
change things in a major way, so we can expect e.g. run configurations to
stay intact.
It therefore makes sense to allow users to schedule an
application run not only during a build (see 4b92b7ac60), but also
during a parse. Arguably, this is even more relevant, as parsing is
usually not triggered directly by the user, but happens as a side effect
of editing a document or switching a branch. It is then annoying for
users to have to wait until the respective buttons get enabled again.

Fixes: QTCREATORBUG-24986
Change-Id: I1081ccde668eee794c39b96cd0bad5c3aaa580bc
Reviewed-by: hjk <hjk@qt.io>
2020-12-11 15:17:05 +00:00
Oswald Buddenhagen
2839d9fa92 add/improve tooltips of mime type settings page
Change-Id: Ie03bc73763f4acbb72ed14e249b8e9598570c3e6
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-12-11 14:55:47 +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
Kevin Funk
34e20e641f qmljs: Handle qmlRegisterSingletonInstance
Parse qmlRegisterSingletonInstance to support types created this way in
QML.

Change-Id: I08440de52097faae5fd05ab32157279ee2ca2942
Reviewed-by: Kevin Funk <kevin.funk@kdab.com>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@qt.io>
2020-12-11 14:47:25 +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
Kevin Funk
e2668f4bbf qmljsfindexportedcpptypes: Minor optimization
Change-Id: Ie9c3a18fab6aa0ea0d054a118cb2864b15d240f2
Reviewed-by: hjk <hjk@qt.io>
2020-12-11 14:46:53 +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
Jarek Kobus
d42f38cc96 Use Q_ENUM instead of obsoleted Q_ENUMS
It fixes the following warning:
Use Q_ENUM instead of Q_ENUMS [clazy-qenums]

In addition, it amends 8588cf268f
where WidgetStyle got removed.

Change-Id: I4d72dd762a2f18ba8886360b3581b4ef19bf4c5e
Reviewed-by: hjk <hjk@qt.io>
2020-12-11 14:16:42 +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
Alessandro Portale
dce06016ef Include some existing manual tests in the Qbs build system
Change-Id: Iceb346c42ff798430fb4ee6887b34f89768f014b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-12-11 13:35:11 +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
Christian Stenger
ae696a5b6f AutoTest: Fix compile
Amends ca769055e0. Infrastructure behind had changed meanwhile.

Change-Id: Ia7f4e92843c4d4a3b7be061712fe79e72d140fb2
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-12-11 10:11:11 +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
Alessandro Portale
3e9385bf1b Core: Make member functions const/static
readability-make-member-function-const finds lots of member functions
that could be made const. This change just picks getter functions that
really should be const.

readability-convert-member-functions-to-static finds non-static member
functions which do not access this. This change turns most of them
into static ones, but leaves some non static to keep the class API
consistent.

Change-Id: I004d6f7fab4375f9902f940f29b4a4f561fc7604
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-12-11 08:28:25 +00:00
Eike Ziller
a40e5b5382 Core: Save less settings
Try to not save settings that weren't changed from their default, and
make it possible for defaults to change in the future.

Task-number: QTCREATORBUG-24762
Change-Id: If469b72573791bc92ed535edf00271ef09b55386
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-12-11 08:02:57 +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
Eike Ziller
e2eab0e016 Core: Remove legacy settings reading from 2014
Change-Id: I2833be6d3dae1787fdf29cc5a9daccd68fa0f82e
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-12-11 07:44:11 +00:00
Christian Stenger
ca769055e0 AutoTest: Handle sanitizer output
This is an attempt to handle output coming from
sanitizers appropriate.

Task-number: QTCREATORBUG-24328
Change-Id: Ifb22d465c9f99d767cc7702b9c459076ab39d567
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2020-12-11 07:20:08 +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
Alessandro Portale
8df758c45e AutoTest: Use separate icon variations for toolbar and menu
For the "Run" and "Run failed" actions.

Change-Id: I7fc537cbe0727038740f2c26478c30dc96babb66
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-12-10 16:27:38 +00:00
Alessandro Portale
19e13ddd6b Utils: Add "Run File/Selected" icons and use them in ClangTools/AutoTest
In AutoTest, use the toolbar and menu variants accordingly.

Change-Id: I1405de1ace1efe6c3e51b17356a9e4dfb3b11dcd
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-12-10 16:27:28 +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
The Qt Project
d28533abd4 Merge "Merge remote-tracking branch 'origin/4.14'" 2020-12-10 13:34:38 +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
Jarek Kobus
82b2735da4 Don't leak memory when canceling Type Hierarchy
Add QFutureSynchronizer for collecting all running
futures (including those already canceled, but not finished yet).
It could happen, that we cancel the future, while
the associated task still needs some time in order
to catch the cancel request. When a d'tor of synchronizer
is run it cancels and waits for all pending futures
to be finished.

Add extra check for isCanceled() after a call to
updateDependencyTable(). In case the cancel was detected
inside updateDependencyTable(), we should return immediately.

Don't leak CppClass object inside handleLookupItemMatch()
when the task was canceled.

Amends: c400923308

Change-Id: I709e14a0c8b563d522a8e8c32b087e5f83310b24
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-12-10 12:44:49 +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