Commit Graph

63610 Commits

Author SHA1 Message Date
David Schulz
9cfd1b5d6c Debugger: Split long cdbextension commands
Fixes: QTCREATORBUG-22922
Change-Id: I5def321f0f97717728bc5cdcd5309b458a8ecfa1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-04-03 08:25:51 +00:00
Eike Ziller
41a122641c Support adding multiple shortcuts to the same action
In the settings UI. Moves the "Reset" button for individual
actions up to under the list, next to the "Reset All" button.

Users can add a new "row" for another shortcut for the same action,
as long as there are no shortcut inputs empty.
There is no way to directly remove an input row - to remove a shortcut,
just clear the input (like it was the case with just single shortcuts).
This gets cleaned up when you select an item again.

Fixes: QTCREATORBUG-72
Change-Id: Id0402d00ebeb41f5b0c612d9d03f884b78485fbc
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-04-03 08:04:42 +00:00
Leena Miettinen
ab188df276 Doc: Describe changes in Clang diagnostigs
Change-Id: I40dc02d3a4b18d352d0834033ab5ec67252f928d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-04-03 07:29:36 +00:00
Eike Ziller
897abf24e2 Merge remote-tracking branch 'origin/4.12'
Change-Id: I79083060dfc3bc4408123acd3b7305b9701650fd
2020-04-03 08:12:52 +02:00
Eike Ziller
708f84cce8 Doc: Fix style for menu hierarchies
Use \uicontrol for the individual components individually

Change-Id: Idf62db7c37e94a55a988792f13aaa8c49cb1ac07
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-04-03 06:10:16 +00:00
hjk
7f958700a0 Debugger: Make LLDB work a bit with remote Linux
The device on remote side *has* to configure (/usr/bin/)lldb-server as
"GDB server executable" in the device settings.

A real gdbserver does not work.

Change-Id: I045ffb60a824e06ee683d8bdfffeb480a580af5f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
v4.12.0-rc1
2020-04-02 15:50:19 +00:00
hjk
fb784a1f80 Debugger: Start lldb-server instead of gdbserver
... when the debug server looks like lldb-sever.
Also use suitable arguments.

Needed for setting up device connection later.

Change-Id: Ie4130be7881e12d460ab5116b0018916d47ed012
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-04-02 15:07:00 +00:00
hjk
aec5563364 RemoteLinux/Debugger: Pass right platform string to LLDB
Needed for setting up device connection later.

Change-Id: Ib794a8bf093714935b9a3ed3f290d46550763d68
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-04-02 15:00:32 +00:00
Miikka Heikkinen
a9fb719755 QmlDesigner: Skip duplicate assets imported simultaneously
Since asset folder is generated from the asset filename without
suffix, it is possible to select multiple assets with same filename
but different suffix into the import, and they would import into the
same asset directory, causing confusion and potentially broken import.

Fixed by skipping duplicate assets within the same import.

Change-Id: Ied825f32309b4321de7fa471cbd5ff1041e03072
Fixes: QDS-1239
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2020-04-02 14:34:29 +00:00
Leena Miettinen
4efb81ba0b Doc: Edit info about Qt Quick 3D View type
Add screenshots.

Change-Id: I06cb35deabb7c4a2bb6fda3b47dfc3ee49be1b32
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-04-02 14:15:12 +00:00
Thomas Hartmann
936e287402 QmlDesigner: Use constants for flow block size
Change-Id: I0ba4fbc89e7fc6bf9ef1266b5cc4a19bb7837b12
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-04-02 13:28:11 +00:00
Thomas Hartmann
68838682a9 QmlDesigner: Fix bounding boxes in flow editor
The calculation of the bounding boxes did not take the new items
into account. The new implementation now shares code with the painting.

Change-Id: If257dbf4a36e925d71c109e245b7c87c7a5c4017
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-04-02 13:27:59 +00:00
Viacheslav Tertychnyi
4880694df4 TextEditor: Improve column selection
Add the possibility to more efficient column selection for large
documents using keyboard shortcuts Alt+Shift+PageUp/PageDown/Home/End.

Change-Id: Iaa2d9aeee587f1317dd82d7fef0b01fd5f5f7a55
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-04-02 13:09:43 +00:00
Eike Ziller
3a8505fcaf Fix link to documentation on writing highlighting files
Change-Id: I374219b03d94279ca9902567294ff4e49b8ad17a
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-04-02 12:51:08 +00:00
Miikka Heikkinen
09f34a697f QmlDesigner: Fix crash in puppet when component has errors
Check component creation errors earlier to avoid crash.
This allows puppet to notify creator about the problem, so invalid
components can be properly highlighted in navigator.

Change-Id: I059a5be04c4e509a38f6d47daa97e0da36c333ae
Fixes: QDS-1887
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2020-04-02 12:20:35 +00:00
Christian Kandeler
51e8afa4f6 Fix build
Amends 47e576528e.

Change-Id: I581ecbe8ae14be62f05ba5a77f153c998d388188
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-04-02 11:25:08 +00:00
Jarek Kobus
9ca7326d90 Integrate new filter engine
Adapt the code to deprecated usage of map as a multi map,
hence all cases replaced by QMultiMap.

Change-Id: I2d480467cd6e91d3e880555e6a21058dec056b3f
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
2020-04-02 11:22:03 +00:00
Christian Stenger
bf6ecbb042 Update minimum Qt for Qbs builds
Change-Id: I5920b5c1bcdd0f186c9de6c1bb690334a5193051
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-04-02 10:50:42 +00:00
Oswald Buddenhagen
e986bdc7a7 add croatian translation
contributed by Milo Ivir.

Fixes: QTBUG-75911
Change-Id: I8f04f8b5f35ef6083d32d9ef397ce6b150fb22ac
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
2020-04-02 09:55:32 +00:00
Robert Loehning
f64a9b5045 PerfProfiler: Add hint how to make perf work
Change-Id: I9cef8826163a7f716717470e5b7edfd13699f75c
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-04-02 09:47:25 +00:00
Robert Loehning
da558f3376 Squish: Don't close files before exiting Creator
It's not needed and it's fragile since
the menu item is disabled at times.

Change-Id: I0c72c5072374462d99740e7eaa752f91e019c6ee
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-04-02 09:46:19 +00:00
Leena Miettinen
1e9a91e7d1 Doc: Fix the Qt Design Studio Manual sidebar TOC
Fixes: QDS-1889
Change-Id: Ie74a1af668457c18a2ec167f934f0de796251816
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-04-02 09:46:11 +00:00
Leena Miettinen
2b4d2c3d18 Doc: Add screenshot of Qt Quick 3D Model type properties
Also update screenshot of Qt Quick 3D Components section
in Library view QML Types tab.

Change-Id: Id70c5cb8400c81473eb1d2e3a9c8e41cd53db3d9
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-04-02 09:45:56 +00:00
Robert Loehning
dd4beac2a3 Squish: Don't use underscore in project name
We'd have to escape it so openDocument()
can find it in NavigationTreeView.

Change-Id: I0be07874fdb6b8fba7a3a2e01e2927a79a47e358
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-04-02 09:45:50 +00:00
Assam Boudjelthia
8009962584 Android: remove automatic sdk setup ambiguity
Use label text instead of icon for Auto SDK download button.

Fixes: QTCREATORBUG-23774
Change-Id: I5f10bafb0cdf88210f7121504778885291169e07
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-04-02 09:12:32 +00:00
Tim Jenssen
e571c98661 QmlDesigner: fix a rarely happen crash
It was difficult to reproduce, but happen regular while importing
something from design tools.

Task-number: QTCREATORBUG-23707
Change-Id: I93e8c8cf9d44ecf20f5754ae48a0599f056a8610
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-04-02 09:12:31 +00:00
Christian Kandeler
7834f172ce ProjectExplorer: Fix copy-paste error in AbstractProcessStep
Change-Id: Id345f3c2c51d4ac4b773113c7e22533ebcbcfaf7
Reviewed-by: hjk <hjk@qt.io>
2020-04-02 08:55:31 +00:00
Miikka Heikkinen
35c0deac5e QmlDesigner: Add highlight color to edit 3D view toolbar buttons
Task-number: QDS-1752
Change-Id: Ice390cd1c53f26b48aca5789c2a1c7736ffa990a
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2020-04-02 08:35:58 +00:00
Leena Miettinen
6741eb9293 Doc: Update guidelines for writing Qt Creator documentation
- Include information about writing Qt Design Studio Manual
  from its README file
- Update information about building the docs

Change-Id: Iaaff47ca3f07c859aa726e7e7f571042a8aadd48
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-04-02 07:07:52 +00:00
Leena Miettinen
7f558b983d Doc: Describe the Restrict to Threads button
Update screenshots.

Task-number: QTCREATORBUG-23364
Change-Id: I8e79ad4682024862a05f4529a828464125bd639b
Reviewed-by: hjk <hjk@qt.io>
2020-04-02 07:06:44 +00:00
hjk
9b97f12669 RemoteLinux: Rename some gdbServer variable to debugServer
It could be lldb-server at some time, too.

Change-Id: I5a8210e05189902d1cef9b41e14df0b585bcb86b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-04-02 06:31:44 +00:00
hjk
d746b4ab2d Debugger: Rename some gdbserver variable to debugServer
It could be lldb-server at some time, too.

Change-Id: Iba4bd0d073ba74e10dd579f0115570ccd4189da3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-04-02 06:24:42 +00:00
hjk
d1173d2136 Android: Use BuildSystem in AndroidExtraLibraryListModel
... instead of Target. The model is tied to an ApkBuildStep, i.e.
already per-BuildConfiguration.

Make the update depend on its BuildSystem parsing state, not any
in the target.

Change-Id: I72c00b9c40bfb7bee0375ae7b3f912f27bd18ca8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-04-02 05:48:25 +00:00
Lars Knoll
47e576528e Port QtCreator over to use filterRegularExpression
QSortFilterProxyModel::filterRegExp is going to go away in Qt6,
so port over to use QRegularExpression instead.

This required some changes where setFilterWildcard/FixedString()
was being used, as those would instantiate QRegExp based filters
in Qt 5, and will use QRegularExpression in Qt 6. Use the generic
setFilterRegularExpression here, to keep things portable between
5 and 6.

Change-Id: I6379be781aa3821b10ba783c088f82c1a0970911
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-04-01 20:36:49 +00:00
Viacheslav Tertychnyi
0ae676d84a ProjectExplorer: Fix build progress bar update
When using CMake, if the build queue includes two or more
steps (Rebuild or Build All), the build progress bar did not
update properly after completing the first step.

Change-Id: I1a72e9e8494233a7dca73bdb6c1b51717af1d53d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-04-01 14:07:40 +00:00
Christian Kandeler
3b740fccc8 QbsProjectManager: Ensure project data update on target switch
... if necessary.

Fixes: QTCREATORBUG-23767
Change-Id: I9a79eebcab348fe0b37d76b31dcbf088d56fc3ca
Reviewed-by: hjk <hjk@qt.io>
2020-04-01 13:51:08 +00:00
hjk
553c3c2c74 Android: Use the new Target::activeBuildKey() function
Change-Id: I051874a2b44129740b2ecc19f7ff401663d8bf0a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-04-01 13:42:08 +00:00
Christian Kandeler
11cd79adca ProWriter: Fix removeVarValues() function
This function wrongly assumed that there is always an empty line between
variable assignments. For instance, When renaming a header file in a
project file where HEADERS follows right after SOURCES, the function
would erroneously claim that it removed the header file from the SOURCES
segment, so follow-up code added the name name there instead of to
HEADERS.

Fixes: QTCREATORBUG-23720
Change-Id: I55288b22fe16fa0593b277d8808ab5d64ba90549
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-04-01 13:39:43 +00:00
hjk
f83347ec00 ProjectExplorer: Introduce an Targer::activeBuildKey()
... redirecting to activeRunConfiguration()->buildKey()

This will allow the user code side to be moved closer to a setup
that will allow to shift the build data stored in project nodes
to the build system.

Change-Id: Icdf03e77bf61ee03b3a16855ac67652c205402fa
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-04-01 13:19:50 +00:00
hjk
c2627298d8 ProjectExplorer: Introduce "extra data" handling for build system
That's meant to replace the per-ProjectNode storage, which cannot (or
is hard to be) used correctly for target/buildconfig/buildsystem
dependent data.

For now just redirect to the node storage to enable the users to
port to the new interface before finally changing the storage as such.

Change-Id: I14d30b4d68c93bac0f14b787e82d00d1e0ada3b2
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-04-01 13:19:32 +00:00
Leena Miettinen
f75e54160d Doc: Update info about debugging
- Describe GDB server init and reset command fields
- Update screenshot
- Describe hiding and showing columns in views

Change-Id: Ifdbec54f7f9f5c07e82c9c6915cd267a031c0c25
Reviewed-by: hjk <hjk@qt.io>
2020-04-01 10:02:20 +00:00
Leena Miettinen
c80fc180a3 Doc: Describe the command to run Cppcheck on selected files
Task-number: QTCREATORBUG-23364
Change-Id: If21f647e5d7bbafae1d14b489aadd57d423cc663
Reviewed-by: Sergey Morozov <dev@gres.biz>
Reviewed-by: hjk <hjk@qt.io>
2020-04-01 08:18:07 +00:00
Thomas Hartmann
7222df86d1 QmlDesigner: Rename signal
The name clicked is missleading.

Change-Id: I2782d1af5c0bd8a58c24729f043291b482cec6a8
Reviewed-by: Aleksei German <aleksei.german@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-04-01 08:10:09 +00:00
Brook Cronin
247ffa0e1b fix formatting
Change-Id: Iaf49d5fa3239209e68f30762cc565fe3833b571e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-04-01 08:08:44 +00:00
Brook Cronin
9ad7358613 add new icon font, update mapping in constants
Change-Id: Idbaa82a22ac317fc9089f76fc5de506e3f4bba5c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-04-01 08:08:21 +00:00
Leena Miettinen
5bb880aa67 Doc: Describe managing Heob settings profiles
Task-number: QTCREATORBUG-23364
Change-Id: I2ebb9291f36c593074f58c701eee1e434710007b
Reviewed-by: Hannes Domani <ssbssa@yahoo.de>
Reviewed-by: hjk <hjk@qt.io>
2020-04-01 06:56:47 +00:00
Viacheslav Tertychnyi
fc7ba444df Fix Russian translation
Change-Id: I8d9534e5fa1e8a44a0cfa0f22fe74e54e6b10d15
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Reviewed-by: Anton Kudryavtsev <antkudr@mail.ru>
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
2020-03-31 16:48:23 +00:00
Thomas Hartmann
33cc991321 QmlDesigner: Fix tooltip
Task-number: QTCREATORBUG-23786
Change-Id: Ia87f6c711c8fb46dd8ac74802e224a5e7382aa46
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-03-31 14:22:52 +00:00
Aleksei German
e076ed50ac QmlDesigner Add Default Label
Change-Id: Id2f3f1be68f3b6f00b80d4959aeb597137086541
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-03-31 13:06:46 +00:00
Miikka Heikkinen
ee81b5d895 QmlDesigner: Exit puppet asynchronously in case of failed icon render
The application event loop is not yet active at setup time, so just
calling qGuiApp->quit() directly doesn't actually exit the application.

Change-Id: Iccae4dd59d92b593205c2057b189774f827ffcda
Fixes: QDS-1875
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2020-03-31 11:43:11 +00:00