Commit Graph

53197 Commits

Author SHA1 Message Date
Leena Miettinen
c438eda6cd Doc: Windows Runtime renamed as UWP
To reflect the change in Qt installers since 5.9.

Change-Id: I685c32c168e95e76ae3d81b87d4d10a5092e7a8a
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
2017-08-16 14:17:17 +00:00
Vikas Pachdha
a4d8105497 Android: Support API level 25 and 26
Task-number: QTCREATORBUG-18690
Change-Id: Ifa25d95c75e854be1b88065925dd77296720f183
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2017-08-16 11:26:15 +00:00
hjk
66f75d6e60 Debugger: Mention personaltypes.py in the docs
As entry point for custom dumper implementation.

Change-Id: Id6b996821cbd679b8b6886fcf41625fbbde49ff4
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2017-08-16 11:24:07 +00:00
Nikita Baryshnikov
2a62a72c69 QmlProjectNode: fix coverity warning
Change-Id: I83d2684f4adb9f969824e202da2261b37a699a68
Reviewed-by: hjk <hjk@qt.io>
2017-08-16 11:13:39 +00:00
hjk
49ffe0fb40 QmlProfiler: Disconnect some signals on shutdown
It's a workaround, not a proper solution (as indicated by the
SOFT ASSERT: "d->m_profilerState" in file qmlprofilerruncontrol.cpp,
line 144 triggering) The state manager (and possibly more)
is referenced from potentially running run controls, that are ramped
down after the plugin.

Task-number: QTCREATORBUG-18736
Change-Id: Ia20b168fe640c818276a777e1d23feab0cacd565
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2017-08-16 09:06:22 +00:00
hjk
a0c26a9279 Debugger: Adjust a comment on the used of dumpers for CDB
Change-Id: Iac11c9f9415de3c8128f271fdbefdf78877d2755
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2017-08-16 09:04:45 +00:00
Vikas Pachdha
cdffb378fd Android: Fix QML debugging
Specify the qml server address and use correct default loop back
address in qmlengine

Change-Id: I9b77cb3385041bbe79900e7f7a188ca26124bacc
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
v4.4.0-rc1
2017-08-15 14:40:25 +00:00
Eike Ziller
a194b107d6 More change log
Change-Id: If236df9562af18867f3dd4d2c0ec4a527751c6e1
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2017-08-15 13:52:44 +00:00
Ulf Hermann
d571b5051e QmlProfiler: Tests for QmlProfilerDetailsRewriter
Change-Id: I26b7f71fad35d569e0fc70fe4f5eaf2796e607cf
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-08-15 13:46:05 +00:00
Ulf Hermann
dc912be7ea QmlProfiler: Properly prepare the file finder on every start
We want to examine the current list of projects, also if we don't have a
specific runConfiguration. Also, after repopulating the file finder, we
need to clear the cache of file mappings, as they might have changed.

Change-Id: I351789fe999009d443ca5ade9b365bfd490e0e23
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-08-15 13:38:31 +00:00
hjk
609b4170f3 Debugger: Show guts of QString::Data when requested
If people already decide to drill into QString they are likely
to want to be able to drill into QString::Data, too.

Change-Id: I90cf1bd9b7bed66805fc7493cf1595d27ef3b129
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2017-08-15 13:38:03 +00:00
Ulf Hermann
6a626595dc QmlProfiler: Rename QmlProfilerDetailsRewriter::clearRequests to clear
It also clears the lookup cache.

Change-Id: I9fdd9136084a17f427336d6ce2d37d724b9b20d2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-08-15 13:37:59 +00:00
Ulf Hermann
65c11e43df QmlProfiler: Add some sanity to details rewriter's PropertyVisitor
Take care of possible integer overflows and apply coding style.

Change-Id: Ib3922f30c102575ab773f7708864886fc0b53d15
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-08-15 13:37:51 +00:00
Nikolai Kosjar
ff21d3464d Clang: Blacklist override warnings from Q_OBJECT
Task-number: QTCREATORBUG-18621
Change-Id: I20d4fd7a93e0557334135bf7bcbd2f6517a6ede6
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2017-08-15 13:19:44 +00:00
Robert Loehning
e204e514d9 Tests: Fix instructions to testers
Change-Id: Ie22fca7cb68132876f867b57d7e1e5362289e0a4
Reviewed-by: hjk <hjk@qt.io>
2017-08-15 12:06:37 +00:00
hjk
90de4bae40 Debugger: Hex-encode LLDB disassembler source lines for transport
Unescaped quotes break the protocol.

Task-number: QTCREATORBUG-18721
Change-Id: I235c4dc33e599769bc854423ef4a7dc6f46bf58e
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2017-08-15 08:44:27 +00:00
Eike Ziller
d8fd5292f1 Merge remote-tracking branch 'origin/4.4'
Conflicts:
	src/tools/clangbackend/ipcsource/clangiasyncjob.cpp
	src/tools/clangbackend/ipcsource/clangjobrequest.cpp
	src/tools/clangbackend/ipcsource/clangjobrequest.h

Change-Id: Ib8602530663813ade418f995dfd2a736908cfe75
2017-08-15 10:07:51 +02:00
Ivan Donchevskii
e6a50fd44a Clang: implement requestFollowSymbol plug-in side
Invoke follow symbol in clang backend
if env variable QTC_CLANG_FOLLOW_SYMBOL is 1.
Does not include backend implementation.

Change-Id: Ia20a677830ebdd7f24800af5c5d6e8b1bf579205
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-08-15 07:32:16 +00:00
Ivan Donchevskii
4ad0e5295c Clang: add follow symbol infrastructure
Add messages and jobs

Change-Id: I875280216da40ce08d972024789c060205746421
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-08-15 07:32:03 +00:00
hjk
885f8b5385 Debugger: Short-circuit part of the parameter fixup machinery
... which should not exist to start with, and interferes in some
cases where the user code knows better.

Change-Id: Ie0b0038af3a4056fad8655d06f677fc800c99f8d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-08-14 16:03:25 +00:00
Oliver Wolff
7ab6e345fe Support debug requests from Task Manager
If debugging was started from Task Manager Windows does
not follow the format given in the registry but always uses
"<debugger> -p <pid>".

By ignoring the -p parameter and using "debug" instead of
"wincrashevent" we can also support this use case from QtC's
debugger.

The message which is shown in this case will be adapted as
soon as this change hits master but with the current approach
the situation is greatly improved for 4.4.

Task-number: QTCREATORBUG-18194
Change-Id: I871a19f0cd68f61337d1e6c224ecc3c22a02c989
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2017-08-14 15:12:40 +00:00
Nikita Baryshnikov
fbbfb0cc6e SshAgent.Request: Initialize member
Change-Id: I4c40e95fedac64697ba22685e7638e78fa816db2
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-08-14 15:05:14 +00:00
Eike Ziller
89dbe978b1 Merge "Merge remote-tracking branch 'origin/4.3' into 4.4" into 4.4 2017-08-14 14:11:09 +00:00
Nikolai Kosjar
3e9ebc24be Clang: Clean up clangassistproposalitem.cpp
Change-Id: I200041b48a337912e7b3297881db58f7cf1f9b0e
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2017-08-14 12:51:23 +00:00
Nikolai Kosjar
415d3c4784 Clang: Fix cursor position after completion of overloads
struct Foo {
    void begin();
    void begin() const;
};

void c(Foo &foo)
{
    foo.beg // complete to foo.begin()| instead of foo.begin(|)
}

Task-number: QTCREATORBUG-17443
Change-Id: I60ca16bbfeeb75c5c37a0d5bc6f46e9e9913b86e
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2017-08-14 12:51:15 +00:00
hjk
e5631e2ebe Debugger: Fix location marker update for LLDB Jump to Line
Change-Id: I93c46eabb8c91c3e7158454f04cf027d55ece621
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2017-08-14 12:48:32 +00:00
hjk
e16a30712e Debugger: Re-enable some shutdown cleanup code
It is still needed with LLDB.

Task-number: QTCREATORBUG-18723
Change-Id: If78dcbf8e074add969c403c37193c9f4ce857625
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2017-08-14 12:47:47 +00:00
Nikolai Kosjar
c0364564a4 Clang: Fix highlighting of template function in using declaration
This completes

    commit a3a62e78f7
    Clang: Fix highlighting of function in using declaration

Change-Id: I3c163096374d7a1f45a590bb8ebfe5f5a1f8d417
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2017-08-14 12:46:43 +00:00
Ulf Hermann
ea21d3fdfb QmlProfiler: Make some QmlProfilerDetailsRewriter members private
Change-Id: I973c77eadf35e814352edaac3992437cf2c4be66
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-08-14 12:02:06 +00:00
Eike Ziller
b5f49273b0 Merge remote-tracking branch 'origin/4.3' into 4.4
Conflicts:
	src/plugins/qmlprofiler/qmlprofilertraceview.cpp

Change-Id: Ib1d75a8572f650898cb598d008867e2c0514d752
2017-08-14 12:37:06 +02:00
Ulf Hermann
63551d7711 QmlProfiler: Rebuild the flamegraph model when visible features change
This is more expensive than just setting the filtered items' height to
0. However, this way we implicitly also change the size of the root
element, group equal items that end up on the same level by filtering,
recalculate the cutoff for too small items and resort all items by
width.

Change-Id: Ida2c5acd9848c5644ecff052d78e9fe5ad962606
Task-number: QTCREATORBUG-18713
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-08-14 09:39:59 +00:00
Ulf Hermann
e7c950eb11 QmlProfiler: In statistics use non-recursive time as total
Otherwise the percentages and totals don't match. The extra recursive
time is shown in the tooltip, without percentage (as there wouldn't be a
sensible base value for a percentage number).

Change-Id: I47fcf92aac3f60554219f7da9dd2ac90061ce496
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-08-14 09:39:50 +00:00
Jake Petroules
0cbb78e464 Fix build
Amends 5e6ff55

Change-Id: Iab56b5d06335ce916cd9381ea7ea58c4f8759116
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
2017-08-14 09:19:49 +00:00
Ulf Hermann
6de5650241 QmlJS: Fix initialization order
This avoids some compiler warnings.

Change-Id: I81a626d22d39a2a45c2bf64403b0e28b76e50105
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2017-08-14 09:18:44 +00:00
Leena Miettinen
dc8cbfa469 Doc: Describe QML/JS editing options
Change-Id: I9ee84a08a45796f77bb6acf620327059b4cab93d
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
2017-08-14 08:04:51 +00:00
Jake Petroules
5e6ff555ab Fix deployment to Windows 10 Mobile devices
Task-number: QTCREATORBUG-18728
Change-Id: Ib04ca8a0a163611bbb53bc50f2e0009ab460ce35
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
2017-08-14 06:29:01 +00:00
hjk
78efd5cfe9 ClangStaticAnalyzer: Don't show 'stopped by user' if it wasn't
Task-number: QTCREATORBUG-18581
Change-Id: Ib5d2aded5da14e44f3186a2ed67f119764d6d58d
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-08-11 16:11:07 +00:00
Ulf Hermann
afdf0d5ec4 QmlProfiler: Don't add an extra nanosecond to the flame graph bottom
Change-Id: Icda2b69363439de92a012a0cf46b8084b69d777d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-08-11 11:40:01 +00:00
Robert Loehning
74d14d0092 QmlJs: Initialize members
Change-Id: I15a3ec660608266595a8b7a12b59016cc28331af
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2017-08-11 10:34:00 +00:00
Thomas Hartmann
2307e10aa2 QmlDesigner: Fix crash
This was introduced when adjusting the selection behaivour.
We have to check for the empty list before we call
itemList.first().

Change-Id: I12a12bc17f1f513304c8df738e76db999267854a
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2017-08-11 10:27:05 +00:00
Thomas Hartmann
aa3270a1e6 QmlDesigner: Fix crash
This was introduced when adjusting the selection behaivour.

When we change to the selection tool we might delete items.
This item could be in itemlist we forward to AbstractFormEditorTool.

Therefore we change to the selection tool after calling
mouseReleaseEvent().

Change-Id: I5cab902b8560780c6ee4edc3466e7087d719f1ef
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
2017-08-11 10:26:58 +00:00
Ulf Hermann
705c618aeb Fix docs about QML debugging
You can only debug QtQuick 2, and you need Qt 5.0 for that. Also, the
port is not well known as it's chosen at runtime, and various features
of the QML inspector have been dropped.

Change-Id: Ibb2fa6c4de203423c4e0cb9f240643e7354e7a34
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2017-08-11 08:51:47 +00:00
Jarek Kobus
6213369675 DiffEditor: Fix saving diff containing new or deleted files
Fix also the case when new file was empty.
Fix some const correctness.

Change-Id: Ied71c3de0398914e595fbf542f1b8ec3659d69b6
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-08-10 16:59:54 +00:00
Jarek Kobus
e3ce4b150d DiffEditor: Optimize patch processing
Get rid of QRegularExpressions, they are very slow.
Simplify readGitPatch() a lot.
Make reading of the patch about 20 times faster,
especially make readGitDiff() itseft (excluding the calls to
readChunks) working about 1000 times faster for huge diffs.
So, the processing time for e.g. the bottom commit of
qttools module (the import commit) decreased from ~20 seconds
to ~1 second.
Implement nice progress of patch reading.

Change-Id: Ie24786596237bde475e37337663018a8bec086bb
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-08-10 16:58:45 +00:00
Ulf Hermann
178ef461bd QmlProfiler: Include qtcfallthrough.h for Q_FALLTHROUGH
Change-Id: Iac3b7ea8314eff6e15c3c4a04a612a8026bf040f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-08-10 15:59:46 +00:00
hjk
7f87e2af3c DeviceSupport: Implement DesktopDevice::portsGatheringMethod()
The feature is useful in a QtApplicationManager debugging context.

Internally, DeviceUsedPortsGatherer uses a DeviceProcess now,
not an SshRemoteProcess, to cover cases where the (Windows Desktop)
device not have ssh available.

Change-Id: I9d33ceac65a135123a376ebd2727dcb540563179
Reviewed-by: Wolfgang Bremer <wolfgang.bremer@pelagicore.com>
Reviewed-by: Dan Cape <dcape@qnx.com>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-08-10 15:23:07 +00:00
hjk
4048629d1a Qnx: Create slog2 runner processes at more reasonable times
89f02cba2c introduced a regression.

Change-Id: I3ae4ecc7f2dfcd477ffe7a277a87acd90aad5339
Reviewed-by: Dan Cape <dcape@qnx.com>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-08-10 15:22:54 +00:00
hjk
90d152ac07 QmlProfiler: Clean up some includes
Change-Id: Ia4706170b07070e46c62296a806e785d96d2f4ef
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2017-08-10 14:55:31 +00:00
Ulf Hermann
5dbb4f0907 QmlProfiler: Express record button state in a single function
This way we get a concise description of the inputs it reacts to and we
don't have to dereference the pointer in unrelated code, which lead to
crashes on shutdown.

Change-Id: Ieb75ab95cccc0d1f88420b270909c97867a5c3e0
Reviewed-by: hjk <hjk@qt.io>
2017-08-10 14:41:28 +00:00
Robert Loehning
eb16dd3c79 Utils: Use title case in title bar
Change-Id: If84c417c66ea98b9a75605fe594179b9b93b4715
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2017-08-10 14:34:35 +00:00