Commit Graph

57255 Commits

Author SHA1 Message Date
Orgad Shaneh
f5203796e4 Git: Use ICore::dialogParent as dialog parent
Change-Id: Idc3f2f4d27d3279f76b688fac635e8d38b2705f5
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-11-29 14:56:43 +00:00
Christian Stenger
d3c1086910 Squish: Fix WELP tests
Adapt to new titles of some tutorials.

Change-Id: I18d62d88877b59a51ebfdb19f5fe16ac8d828800
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-11-29 14:45:10 +00:00
Christian Stenger
c5d1ec5144 Android: Fix debugging using old devices
Uploading a binary file had been remade using base64
encoding, but base64 tool is not available on older
devices.
Fallback to the old approach of relying on the
symlinked lib folder that contains a gdbserver if
the upload failed.

Task-number: QTCREATORBUG-21317
Task-number: QTCREATORBUG-21547
Change-Id: I54539d8912b1722bb799068c33e7a9175699ff70
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-11-29 14:40:33 +00:00
Eike Ziller
8d19b306ed Android: Detect clang and gdb from older NDK
Get some minimal compatibility with the older NDK that is used for
Qt < 5.12 back.
This detects clang-3.6 and gdb from NDK 10e.
For building, the android-g++ mkspec continues to be used for Qt < 5.12
(it uses Qt's default mkspec, regardless of toolchain in the kit,
because the toolchain reports to support both).

Task-number: QTCREATORBUG-21595
Change-Id: I3487c38093f43ccae2418fb28807a50fbda101a8
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-11-29 14:28:59 +00:00
Nikolai Kosjar
12dce3ef7d Clang: Work around eating memory with gcc/clang/-fno-rtti/boost
Boost recognizes a misconfigured compiler in rtti emulation mode
(-fno-rtti) as our libclang command line is special. Even worse, it does
not seem to stop instantiating templates and allocating memory
afterwards.

For the former to fix, we need to rework our command line (in master).

The latter can be work arounded by defining
BOOST_TYPE_INDEX_CTTI_USER_DEFINED_PARSING with a value for gcc/clang.
See also
https://www.boost.org/doc/libs/1_64_0/doc/html/BOOST_TYPE_INDEX_CTTI_USER_DEFINED_PARSING.html

Task-number: QTCREATORBUG-19543
Change-Id: Iddb5be2d1f1966018e5ab535a8f7475fe7911284
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-11-29 12:51:29 +00:00
Alessandro Portale
7bdc858d77 QmlDesigner: Improve resize handle size
The visual representation of the resize handlers was 1 pixel too small
compared to the bounding rects. They were also not centered on the 2px
thick line.

And they simply looked too tiny compared to resize handlers in other
applications.

Change-Id: Idc48d66178cd5f0158efe2f66d685afc4549022e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2018-11-29 11:54:10 +00:00
Allan Sandfeld Jensen
51bc18e6d5 Fix lvalue references and rvalue reference incorrectly matching
Adds the comparison of isRvalueReference to make sure they get
difference entries.

Change-Id: I294205786f3d1322e542d3b308d61ab44647ecc9
Fixes: QTCREATORBUG-13839
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-11-29 11:34:25 +00:00
Nikolai Kosjar
9fe8c46d15 C++: Use file size limit also for included files
We can't stop the clangbackend from processing huge files, but at least
our built-in parser.

Fixes: QTCREATORBUG-21590
Change-Id: I506024495ba0632692f2845c6c204360f4c61b33
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-11-29 11:03:53 +00:00
Eike Ziller
dd9993a05d Add more changes for 4.8
Up to ab4f6ad9ce

Change-Id: I29916628792469746f5cc84f92a3b51df776e627
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2018-11-29 10:44:30 +00:00
Ivan Donchevskii
9eb66a806f Clang: Properly set up warnings for clang-based libraries
Add warning flags to QMAKE_CXXFLAGS_WARN_ON to have them
after default warnings.

Change-Id: Ic94fe36175d3198191251d5b475f8f8ed000bef7
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-11-29 09:27:33 +00:00
Christian Kandeler
ab4f6ad9ce QbsProjectManager: Fix race condition on target switch
(cherry picked from commit 77c729bb8a)
Fixes: QTCREATORBUG-21544
Change-Id: I2a29e17ad1fd37049db16634f16e8c6916cb1093
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-11-28 13:25:23 +00:00
Tobias Hunger
20badbe019 CMake: Suppress header-only targets from code model
Do not report targets that contain headers only and have no
include directories/defines set up to the code model. Such targets
are used to tell creator about the projects header files as a
work-around to creator not reporting headers in cmake projects.

This work-around is of course not necessary anymore, but it is widely
used and breaks the heuristics in the code model. So do not inform
the code model about these parts of the project.

(cherry picked from commit 152d2245d9)
Task-number: QTCREATORBUG-21425
Change-Id: I387d9d9fb4ae7b54fa08ee9b23efb9ab1f179b9c
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-11-28 11:31:38 +00:00
hjk
b364282228 Debugger: Fix perspective combobox activation
Fixes: QTCREATORBUG-21567
Change-Id: Ia309887fdc4752eb7ef82993608c83d0e2a757a8
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-11-28 10:57:48 +00:00
Allan Sandfeld Jensen
5f79b5d2e5 Fix crash in qmake parsing
The read from a QHash needs to be protected too if other threads are
writing.

Fixes: QTCREATORBUG-21416
Change-Id: I75e5634e11b10056d6dbb6fdceef482ca2222ca1
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
2018-11-28 09:27:04 +00:00
Nikolai Kosjar
03ee0e6acc Clang: Abort hover handlers on ~TextEditorWidget
We have a QPointer<QTextEditorWidget> in HoverHandlerRunner and a check
in onHandlerFinished() to handle the editor-closed-case. However, the
HoverHandlerRunner and thus the QPointer<> do not outlive the
TextEditorWidget.

Abort the handlers in ~HoverHandlerRunner instead.

Task-number: QTCREATORBUG-21582
Change-Id: I03b78802ca75ddd4be9fea994e3dd9b152060e72
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-11-28 09:22:30 +00:00
Ivan Donchevskii
d47cb48909 Clang: Do not call built-in follow symbol with no document
CppEditor tests (the part which works with ClangCodeModel) showed
that it's possible that QTextCursor might get document reset
to the moment we try to call built-in follow symbol. That means
that the editor widget is closed already.

Check for the document to prevent such behavior.

Change-Id: I2463f4688dc6fca7f701fba243ffc6e43a573b33
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-11-28 09:07:11 +00:00
Ivan Donchevskii
ea0837377b Clang: Disable columns resizability for Clang-Tidy and Clazy view
The resize behavior is not intuitive, let's disable it.

Fixes: QTCREATORBUG-20803
Change-Id: I4bc7b513637077a99c3cdd1f4976e8ffc62d0680
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-11-28 09:06:43 +00:00
Ulf Hermann
fdc20e7705 Utils: Pile more hacks onto our "QTipLabel"
The moc files "#include <memory>" these days. You cannot do that from
within a custom namespace or funny things will happen. Therefore,
include it already before the namespace.

Change-Id: I34f808cd22634c85878658ec921ca31649fb37c3
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-11-27 13:37:27 +00:00
Alexandru Croitor
9d8cd37e8c Debugger: Fix thread switcher combobox to show current thread
When a breakpoint was hit, the combo box "popup" correctly showed
which thread was interrupted (with the little left-arrow icon),
but the actual combo box always showed the first thread.

This change makes sure to update the combo box current index whenever
a breakpoint is hit.

Change-Id: I8339f4334df46830f5e8f82a2b4eafa9e6a388c4
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2018-11-27 11:45:12 +00:00
Alexandru Croitor
18c6048099 Debugger: Fix thread switching when using lldb on macOS
The SetSelectedThreadByID method expects an integer, and not
a string.

Fixes: QTCREATORBUG-21563
Change-Id: Ibd5538a3214b73d7e87e66b59d6b9af0b93effeb
Reviewed-by: hjk <hjk@qt.io>
2018-11-27 11:00:40 +00:00
Ivan Donchevskii
e5c2b30e90 ClangFormat: Enable BreakStringLiterals in .clang-format
Change-Id: Icbd601c236cb5ad620d1bc7217a8629fe50a0046
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-11-27 10:20:52 +00:00
Ivan Donchevskii
f1634df8b3 ClangFormat: Trim space-only lines to properly indent them
Do not add indentation to the existing spaces in the line
but trim the line first and then indent it as an empty line.

Change-Id: I0e95ab5e4550410e55abfb12362035751c47b0b3
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-11-27 10:20:17 +00:00
Ivan Donchevskii
386535cf18 ClangFormat: Fix iteration through text blocks
Document might be edited between consecutive currentBlock.next()
calls which is unsafe. Let's instead operate with block numbers.

Fixes: QTCREATORBUG-21521
Change-Id: I6863a77a32f5583269e1c796f38afb45cc9e7f77
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-11-27 10:20:09 +00:00
Marco Bubke
8e31cfff91 ClangFormat: Don't export symbols of libraries
Task-number: QTCREATORBUG-21571
Change-Id: I2f6dcadf08b935bec074b6c04e96a31d766b1889
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-11-27 10:16:19 +00:00
Marco Bubke
15df73a8ba Clang: Fix output arguments highlighting for constructor parameters
The are not any more shown but they are still not shown for constructor
arguments because libClang is providing the wrong argument count.

Task-number: QTCREATORBUG-21543
Change-Id: If9b6140ed4b2dedf71bd94aae0a97669cdd04e67
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-11-27 08:51:35 +00:00
Christian Stenger
a84a851814 Docs: Add notes regarding Android command line tools
Change-Id: I14ac223570897a41c031f70bb35813b845872138
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2018-11-27 08:34:22 +00:00
Christian Stenger
217636886c Tests: Fix QmlJs auto tests
Change-Id: Iba5e5e786e8241db120359f95850207021d61c49
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
2018-11-27 08:13:27 +00:00
Nikolai Kosjar
dd5c6c73d0 ToolChain: QTC_CHECK() conversion of __cplusplus macro
Change-Id: I80a6cc4ea9a7dcb10614638f534259e02ed4c10e
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-11-27 07:34:33 +00:00
Nikolai Kosjar
39178cad8c Clang: Remove QTC_ASSERT triggered by test
The code path is intentionally triggered with the test
UnsavedFile.LineRangeForInvalidLines.

Change-Id: I2a0acc618bfd4371c877424edcfbebd4ebb565a4
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-11-27 07:34:17 +00:00
Nikolai Kosjar
f56ec051b0 Clang: Fix TokenProcessor.Qt* tests
With the upgrade to clang 7 these started to fail on Linux.

Something changed in clang regarding the processing of our
wrappedQtHeaders/QtCore/qobjectdefs.h. Since we can't rely on the
include paths of Qt in the tests anyway, inline the relevant
preprocessor directives into the test file to make the tests
independent of that.

Change-Id: Iba5cdc5483c3007346346d294374598a75fcb5a1
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-11-27 07:34:10 +00:00
Nikolai Kosjar
bc6c65396f Clang: Fix providing snippets for another case
We have to indicate snippet addition for the PassThroughToLibClang case.

This completes

    commit d946ff5403
    Clang: Fix adding completion snippets after {

Change-Id: Ib543c415d4fdcc99d8bbf4815930f3d8481bc810
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2018-11-27 07:07:18 +00:00
Ivan Donchevskii
f5fb9932a2 Utils: Fix column number for Highlighting result
Follow up for 8469e317c9. This column number compensation
is not required anymore.

Fixes: QTCREATORBUG-21384
Change-Id: I94da48533520471170200c592129781e5b4b614c
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-11-26 15:39:43 +00:00
Nikolai Kosjar
6a74a24f8c Clang: Fix tidy demo file
Revert unintended addition.

Change-Id: I8ee78ee6e59f7fdc29d62df3e720c5c2dd706ada
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-11-26 14:29:21 +00:00
Eike Ziller
ca33c0b8c1 Bump version to 4.8.0
Change-Id: I593dc1905bd4e2240449fb9f393c2c14b73488f1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-11-26 10:14:01 +00:00
Nikolai Kosjar
a4cf0ad109 Clang: Disable printing stack traces by default
Printing the stack strace in the event of a crash is very useful, but in
the worst case it can also result in a deadlock, without any trace being
printed, rendering the clangbackend completely useless.

For example, if a thread allocates memory (lock) and another thread
crashes right then, clang's stack trace printer is invoked, which
(unfortunately) also tries to allocate memory (deadlock). This was
observed with QTCREATORBUG-21559.

The stack trace printer should be fixed in clang. Until then, disable
printing stack traces by default and allow to enable when explicitly
requested (QTC_CLANG_ENABLE_STACKTRACES=1).

Task-number: QTCREATORBUG-21559
Change-Id: I418cea7f3d70bc8a9cae333b3858228650307c6e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-11-26 09:49:25 +00:00
David Schulz
b61d11a446 QmlJsTools: add mimetype for JavaScript modules
Fixes: QTCREATORBUG-21517
Change-Id: I18b2b309279f40c3dd4cdee2e7cf27c25fa4984a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-11-26 06:35:00 +00:00
Thomas Hartmann
323136f403 QmlDesigner: Skip failing test
Change-Id: Ie23bef2faa45cd6ac2b96b49bfc02ce6d55d6639
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2018-11-23 09:25:52 +00:00
Christian Stenger
49f8f050df TextEditor: Fix possible crash
Change-Id: I37074051f5fb498c3c074026b8ec7b65c1df3da2
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-11-23 09:22:31 +00:00
Christian Stenger
9ee5cab4ae Android: Add Android 9/API level 28
Change-Id: I80b294a20bbfa19f9b83e080caa6e647062f7458
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2018-11-23 09:10:58 +00:00
Orgad Shaneh
7c17edcce2 Clang: Strip some more warnings
Appear in pchtaskgenerator-test.cpp and builddependenciesprovider-test.cpp.

Change-Id: I4f9f2660655e0dfc1002980ae31bc09288110b2d
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
v4.8.0-rc1
2018-11-22 14:15:46 +00:00
David Schulz
25a135ef95 Revert "Fix issue with snippet variables not behaving correctly on Gnome"
This reverts commit e693c9a02e.

The workaround filters out the last input mehtod event when deleting
characters with backspace leading to unwanted side effects. Also we
were not able to reproduce the original issue with the latest Qt neither
on Debian nor Ubuntu with GNOME.

Fixes: QTCREATORBUG-21483
Change-Id: I986d48216b5f62b0f67fc62f94f8e876bbea23d2
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-11-22 14:09:52 +00:00
Eike Ziller
bd493f963d Fix blank items in Issues pane
Even if source items are removed that are currently not visible, the
rest of the source mapping indices must be adapted.

Fixes: QTCREATORBUG-20542
Change-Id: Ib351286e6e7c35cdbdc96a3c38b346e8ed8f456c
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2018-11-22 13:57:40 +00:00
Marco Bubke
30b522892c UnitTests: Fix build
Change-Id: I9527c97ef2a7360df7b347dc779989c6f6a9710b
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2018-11-22 13:41:14 +00:00
hjk
afe5699f8d Debugger: Show module in stack frames also for LLDB
Change-Id: I2b20b83bedf98a1b0eb17519fb4bec536e48dbaf
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-11-22 13:25:24 +00:00
Leena Miettinen
f4f95ad35f Welcome: Fix titles of tutorials to match the actual titles
These were modified to have related items appear next to each
other, but the participants of a usability study found that
confusing.

Change-Id: I7cadce7e44236687ae32997f72be8d7f7278b4f3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-11-22 09:29:28 +00:00
Robert Loehning
1c9c42c3b2 Update late changes in German translation
Change-Id: Ib091abc409aa767ec8d27016fe9dbb3854f6fbec
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2018-11-21 17:57:12 +00:00
Christian Stenger
069ac16e19 Android: Fix passing binary data through pipe on Windows
Passing binary data through a pipe may break as soon it hits
a control sequence. Encode binary data before piping and
decode it on the device before writing to file.

Fixes: QTCREATORBUG-21547
Change-Id: Iddef5582631575fdd2091c3795d2468be10b8c74
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-11-21 17:30:14 +00:00
Knud Dollereder
ca7c534e58 QmlDesigner: Fix crash
Change-Id: Idc7be64697764878ea320992efc78a40a0a1cb48
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2018-11-21 15:08:24 +00:00
Marco Bubke
e43aa08ebe ClangPchManager: Store collected build dependencies
Task-number: QTCREATORBUG-21289
Task-number: QTCREATORBUG-21377
Change-Id: Idba57ac09bc5a1f1ccef87f5e33f1ceeaccea372
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-11-21 15:05:23 +00:00
Christian Stenger
10f15f5d1a Android: List extra packages as well
These packages should get listed as well as they contain
(at least on Windows) essential packages.

Change-Id: Ia8fb8fc641ac6d9a7fba8f65a31ef65eae560a99
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-11-21 14:35:51 +00:00