Commit Graph

66873 Commits

Author SHA1 Message Date
Eike Ziller
24c03b51fd cmake build: Remove unused internal variables
Change-Id: I68ed91462c3b3c9f27c2a0a5749c373704ce467a
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-01-25 10:44:43 +00:00
David Schulz
7910dadbca LanguageClient: Do not filter executed commands
The commands provided with the capabilities are not the only allowed
commands, but the ones that can always be executed.

Change-Id: Ie005fafe2e64c334f67809c00623dec2901972c6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-25 09:58:09 +00:00
David Schulz
90746d8623 LanguageClient: fix dynamic registered hover provider
Change-Id: I48580b84c310c69ff72fba743260806bd236752f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-25 07:13:51 +00:00
Leena Miettinen
aab88f5e7a Doc: Explain "Replacement kits"
Change-Id: Iceea044c1f81a20d1f3358238e38f231fb634ea7
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-01-22 16:22:30 +00:00
Christian Kandeler
bfb63acb09 clangbackend: Fix missing completion for private member functions
... when trying to complete the name of a function definition. libclang
tags such completions as "not accessible", even though we are not in a
call context.

Fixes: QTCREATORBUG-25244
Change-Id: I4b03b1a43be7a85c37c7d2b2bfe2d83112075674
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-22 14:49:54 +00:00
David Schulz
6564234dd9 LanguageClient: fix dynamic registered completion provider
Change-Id: I4c770b5b59b30b22a280a526b881b3b47bc43f45
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-22 08:54:34 +00:00
David Schulz
eb586385b5 LanguageClient: correctly handle dynamic registered capabilities
Change-Id: Iaeacad68bbff0aded4dd029405fa28a237a65940
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-22 05:34:39 +00:00
Leena Miettinen
23d5a28968 Doc: Add docs for Conan package manager plugin
Task-number: QTCREATORBUG-21785
Change-Id: I616fdfe808fdc5490ac17e95c1554a74524b0444
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
2021-01-21 17:44:14 +00:00
Michael Winkelmann
2d9d4c5446 QML Designer: Add missing export macros for annotation functions
Change-Id: Iead74cc63aad65a33e3f7d78fc88012d2c823c59
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-01-21 12:55:27 +00:00
Leena Miettinen
7f73675bc8 Doc: Fix white space errors and a typo in a QDoc command name
Change-Id: I906423f3b0b1053b965858c8bbb80ab29d49b576
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-01-21 08:55:46 +00:00
Cristian Adam
a819903d9d GitHub Actions: Add support for download.qt.io mirroring
Change-Id: Ia64e40e69bb2e897c0098002122d3bcb7476cb7e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-01-20 14:47:47 +00:00
Vikas Pachdha
55cbe717a9 AssetExport: Export reference assets of components
Task-number: QDS-2868
Change-Id: Ib5d3875e009bde972a30b0a90216bad6ef6e38ea
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-01-19 12:23:31 +00:00
Thomas Hartmann
e2c808f576 AdvancedDockingSystem: Fix crash on shutdown
In some cases the last floatingWidget seems to be
partially destructed. Checking for the parent checks for
this case.

Change-Id: I27cb750d846e71b9ab4423700120e2c659a02adc
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-01-19 12:12:43 +00:00
Kama Wójcik
41ff60a693 QmlDesigner: Paint single event id label
* Paint red label on the arrow with event id if only one event is
  connected
* Cleanup label painting for multiple events
* General code cleanup

Task-number: QDS-3481
Change-Id: I9652c1767ccaeb07b03c35e0fd4fec41d496c210
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-01-19 11:18:01 +00:00
David Schulz
80a1870292 Debugger: log the debugger exitcode also in hex
Change-Id: Ia9742bfa9c36c7ff4fdd965f2a32ea36a4239422
Reviewed-by: hjk <hjk@qt.io>
2021-01-19 05:38:04 +00:00
Tim Jenssen
aa404ca5c9 doc: fix menu entry
Change-Id: I21d1ba77b2f4a39756f6408e6911192237e7e54c
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2021-01-18 16:16:28 +00:00
Christian Stenger
122fdf6e5a Squish: Make another helper tool compatible
Change-Id: I1fc4e268e311c628b541b76ae3a948854635a4a5
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2021-01-18 14:19:30 +00:00
Christian Stenger
18d73f132e Squish: Make helper tool python 3 ready
Change-Id: I42f59a6819467209d46e3830aff6897861c548ef
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2021-01-18 14:19:25 +00:00
Christian Kandeler
cb203dc49c CppTools: Do not wait for QFuture in ~BuiltinEditorDocumentProcessor()
This seems safe, as the arguments to the async function that the future
results from are values and shared pointers, so there does not appear to
be a need for this object to stay around while it finishes.

(cherry-picked from commit fd22787a69)
Fixes: QTCREATORBUG-25121
Change-Id: Ib498551856942bf7c3d05c3013e12ad6d90fd762
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-01-18 10:47:35 +00:00
Leena Miettinen
f62832dad7 Doc: Describe using rich text editor
This is now available for Text and TextInput types
(and annotations).

Fixes: QDS-3570
Change-Id: If0d3a19d7d99fac08abf7d9513058d147859eb07
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-01-18 10:02:14 +00:00
Eike Ziller
9b2cc489dc Fix formatting of proparser messages
In case of no line number, but file name.

Change-Id: I2c51e5834e113c8f98b018df361b0504c4bd79f9
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-01-15 16:35:02 +00:00
Vikas Pachdha
0061c9479f AssetExport: Enable generating multiple metadata files
Task-number: QDS-3357
Change-Id: Icc591d61d149ff92b6c415434e2a7574103802ae
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
(cherry picked from commit f1268a9f86)
2021-01-15 11:03:19 +00:00
Christian Kandeler
a42d252054 SSH: Fix non-session based download operation
Apparently this one never worked, but as we don't use it in our own
code, that went unnoticed.

Fixes: QTCREATORBUG-25236
Change-Id: Ia013baf3ca2fd01cc14b72d9c6a5f73426539d00
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-15 10:41:32 +00:00
David Schulz
8526c7de77 TextEditor: Fix search result highlight for overlapping results
Fixes: QTCREATORBUG-25237
Change-Id: Ib95e49b4db57909b79295f2ff7729560ab45c8a9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-15 10:14:10 +00:00
Leena Miettinen
d8acff46ff Doc: Update screenshot and add info about variables button
- Updated the screenshot in the "Using External Tools" topic to
  show currently available variables and the Variables button.
- Added a link to where the variables are described in more detail.

Fixes: QTCREATORBUG-25233
Change-Id: I1a023d478f239a2fa5a648b36fe22e99435c65b3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-01-14 11:50:46 +00:00
Thomas Hartmann
9ebe7bd8e9 QmlDesigner: print SignalHandlerProperties in debug view
Change-Id: I438a32abd1091028d25758d322d2d81214ac17f4
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-01-14 11:09:12 +00:00
Christian Stenger
c9a956c989 OutputFormatter: Do not ignore DebugFormat
On Windows applications may print to the Windows internal
debug console. This output is retrieved and passed around as
DebugFormat as it is impossible to guess whether stdout or
stderr had been used when printing.
But output in DebugFormat had been ignored so far - fix this
and handle this as inside the Qt test parser.

Fixes: QTCREATORBUG-24560
Change-Id: Ic5e3723c3e3e47556264e4c5cf719706ee7eaf1c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-01-14 10:25:39 +00:00
David Schulz
b7758eebb2 Dumper: Fix std dumper for release builds
for std::map, std::set and std::list

Fixes: QTCREATORBUG-24901
Change-Id: Ibfb196b17b7270729b052ed27dd51786cb2f8db8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-14 08:49:07 +00:00
David Schulz
6ae71652a5 Dumper: robustify msvc std vector/string dumpers
By looking for debug members instead of relying on a failing size check.

Task-number: QTCREATORBUG-24901
Change-Id: Ia79ba893243e864c7808e89ee7e29ba4b853f754
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-14 08:49:03 +00:00
Tim Jenssen
d17e063404 qml2puppet: add cmake multilanguage-support
Change-Id: I75f15cfa29f3296d3c1e938cebe496eae63dd1b4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-01-14 07:55:24 +00:00
Eike Ziller
b888759ba1 Suppress issues for .pro files that are excluded from exact parse
If a subdir in a subdir .pro file is excluded from the build with a
scope, it still is parsed with an exact parser
(in case cumulative parsing fails? see e.g.
440c40f534)

In that case we may not add issues to the issues pane from the exact
parser though, since for the subdir it is unexpected to be handled in
that situation. Post to messages pane like before (without popping it up
though).

Fixes: QTCREATORBUG-25201
Change-Id: If626a5cbc0001170f28bce89ae17394323af2a7b
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-01-13 13:00:18 +00:00
Eike Ziller
9c822eeab9 Qbs: Update to head of 1.18
Fixes: QTCREATORBUG-25232
Change-Id: I92d9de2af1bae66c6f5014186d3f2dcf888710fe
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-01-13 10:29:06 +00:00
Eike Ziller
b83c829e21 Fix project tree's "synchronize with editor"
When for example closing all editors, the selection in the project tree
is removed, but after re-opening the previously selected file, the
selection was still missing.

Qt item views differentiate between "current" item and "selection". The
code uses the "current" item for tracking, but when clearing the
selection in the project tree, the code did not "clear" the "current"
item.

Change-Id: I182c7b78bf8dcc51af71e860ac620310d472b7b5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-01-12 14:43:53 +00:00
Christian Kandeler
4231a88b67 ProjectExplorer: Add more variables for active project
Fixes: QTCREATORBUG-25206
Change-Id: I3826824de73ef15138e037a7134592e4aa13130f
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-01-12 12:51:49 +00:00
Christian Stenger
85bdcf819f Utils: Only write data to process if there is any
This avoids the warning
QIODevice::write (QProcess): ReadOnly device
in cases where the process is run inside a read only
directory even when the process has no input.

Change-Id: I9434c738e9cf94c348f1437ebf15e1c7574cde94
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2021-01-11 14:32:56 +00:00
Eike Ziller
86348d5622 cmake build: Fix fallback LLVM/Clang paths
CLANG_INCLUDE_DIR and CLANG_BINDIR are the fallback paths that are used
if no bundled LLVM/Clang is found, so these must be absolute paths to
the build-time LLVM/Clang installation.

This also removes the need of copying LLVM/Clang into Qt Creator's
build directory.

Fixes: QTCREATORBUG-25147
Change-Id: I052138d894c316f493423b1da0ba79af633c4c37
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-01-11 12:42:14 +00:00
Orgad Shaneh
ac32cf56a1 Debugger: Add -file-exec-file when opening a core dump
-file-symbol-file alone doesn't cover all cases. Run -file-exec-file too.

Task-number: QTCREATORBUG-24541
Change-Id: Id4d8f7057f845bce32b28cc8f4db0eadcfcfab28
Reviewed-by: hjk <hjk@qt.io>
2021-01-11 05:19:08 +00:00
Leander Schulten
c109b60cdf CPlusPlus lib: Add support for BINDABLE in Q_PROPERTY
Change-Id: I8ca00aff63261eea997267d41b12c2397d676748
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-01-08 14:53:17 +00:00
Christian Kandeler
47dfc16eee ClangCodeModel: Work around race condition when closing editors
The editor manager emits currentEditorChanged() before editorsClosed(),
which throws off the clangbackend. Fix this by sending an extra
DocumentVisibilityChangedMessage after the DocumentsClosedMessage.

Fixes: QTCREATORBUG-25193
Change-Id: Ic02ae174a2912d79aeded44ced13d962b53526b1
Reviewed-by: David Schulz <david.schulz@qt.io>
2021-01-08 13:39:34 +00:00
Eike Ziller
000268e40c Fix compilation with Qt 6
No QRegExp in Qt 6 anymore, use QRegularExpression.

Amends bebd70573e

Task-number: QTCREATORBUG-24098
Change-Id: I1f65a400d27d710b6393fb3568e8fc020ccb194e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-01-08 13:03:46 +00:00
Christian Kandeler
a0eff28c1c Utils: Fix crash in environment widget
We called QTreeView::visualRect() with a potentially invalid model
index, yielding a bogus QRect, from which we derived a bogus QPos, at
which we tried to show a tooltip, which crashed Qt.
While the whole logic around that code looks dubious, for now we just fix
the crash by using a persistent model index.

Fixes: QTCREATORBUG-25170
Change-Id: I5647d0ed04bd228bb2887ef06465212545b54f57
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2021-01-08 12:28:28 +00:00
Leena Miettinen
19970878b8 Doc: Update info about Clang diagnostics
Task-number: QTCREATORBUG-25195
Change-Id: Idb8dee94fae29cb0f347decf50e686a3485d9139
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-01-07 14:16:56 +00:00
Eike Ziller
c81baf1a9c cmake build: Use GNUInstallDirs for installation paths on Linux
Allows e.g. distributions to adapt to system layout.

Fixes: QTCREATORBUG-25142
Change-Id: Ia6d759514fef5a154334bc3d7221ea4b970122f2
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-01-07 12:17:20 +00:00
Knud Dollereder
dd8b73cfd2 Rename ActionInterfaces Target to TargetView
Change-Id: I55692f9d773a1466fec5285fdc53149a3a1359f1
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-01-07 11:36:31 +00:00
Christian Stenger
e7a65dd3c9 QmlJSEditor: Ensure extra selections are ordered
The code model may provide selections that are not ordered
as they appear inside the document due to the declarative
nature of QML.
Ordering before using them avoids couple of warnings stating
"overlay selections not in order".

Change-Id: Ie912e94aa01ffde52b01dca7a9bde24ae02e8b33
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@qt.io>
2021-01-07 11:07:45 +00:00
Eike Ziller
b82d51ad69 cmake build: Make it easier to build against system litehtml
By first checking for it in the system, then if the internal copy
is checked out.

Fixes: QTCREATORBUG-25144
Change-Id: I839591cc8e311948a21685384de574e7330a6ee5
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-01-07 09:45:18 +00:00
Orgad Shaneh
bb070d861b Debugger: Minor cleanup
Change-Id: Idfef663ec6701f7ed8904bd5c3dbfa87e0baaf8b
Reviewed-by: hjk <hjk@qt.io>
2021-01-07 09:14:54 +00:00
David Schulz
be3677c02e ClangTools: Avoid assert when no tool executable is configured
The assert is in ClangToolRunner::run.

Change-Id: I195db04631548e6b7ae9d5360827933889433b9d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-01-07 05:31:55 +00:00
Tim Jenssen
e809f665e4 qmljs: add ImportsBenchmarker
To see the results use
QT_LOGGING_RULES=qtc.qmljs.imports.benchmark.*=true

Change-Id: I07fe7b71d893423f3dfe5f9c0f1410bd29312943
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2021-01-06 17:04:29 +00:00
Ivan Komissarov
0f4f67bc4e Update Qbs submodule to the top of 1.18 branch
Change-Id: I80eef69af09c222a92b55bd1524c3f82003829a8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2021-01-06 16:24:43 +00:00