Commit Graph

67787 Commits

Author SHA1 Message Date
hjk
fff1fafec7 Debugger: Consolidate list data extraction in dumper
Change-Id: I5b860da4b1d15ffab8c60418321e40943dbbe07a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-12-08 14:19:40 +00:00
hjk
e9ae81612f Debugger: Disable StaticMembersInLib dumper test for Qt 6
Both values used as test cases are gone.

Change-Id: I7f386a1ad1eccb0589b005d14090207cc518b6f3
Reviewed-by: hjk <hjk@qt.io>
2020-12-08 13:55:54 +00:00
hjk
73f2ea11dd Debugger: Make GDB dumper tests pass with Qt release builds
Change-Id: I45ae41486b8081bb803290895e942a71d41d5c0d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-12-08 12:59:24 +00:00
hjk
8044e7c505 Debugger: Re-fix QCbor dumper with Qt6
Change-Id: Icb2372fc9465b752a6709bf1d422ee3b1d79b2d6
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-12-08 12:46:58 +00:00
Jarek Kobus
b5c820d76d Fix compile warnings about missing override
Task-number: QTCREATORBUG-24098
Change-Id: I9c50d070d34a198b39176f6db13bc2f95521a6a8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-12-08 12:44:01 +00:00
David Schulz
6187998090 Debugger: re-add old qobject children dumper for qtversion < 6
Change-Id: Icbafb7c22d18247f89a8aa6a5029c9914d251c2e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2020-12-08 12:36:30 +00:00
Eike Ziller
a41b4eea75 Clang: Fix enabling of ClangFormat plugin with RelWithDebInfo
RelWithDebInfo also builds in release mode, so just checking for the
build type to match is not enough.

Amends 6b62a99a8a

Fixes: QTCREATORBUG-25056
Change-Id: I5ea448e1cdd0cb3b76d052d6019337cdf13bdbc4
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-12-08 10:52:40 +00:00
Orgad Shaneh
c1a0e9d638 Bump version to 4.15 beta
Change-Id: I39f45b880649323f71ebf3bd3a6bb3677ca33fd2
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-12-08 10:19:36 +00:00
hjk
786e4c6f8f Debugger: Re-enable shortcut to get known type sizes in dumpers
Looks like we need to continue with this crutch for MinGW.

This partiall reverts commit 1074c2ffce.

Change-Id: I89d32f31281c3ef720bbc2a21d5a99bfd0066ba3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
(cherry picked from commit ffe3c56670)
2020-12-08 10:03:54 +00:00
hjk
ffe3c56670 Debugger: Re-enable shortcut to get known type sizes in dumpers
Looks like we need to continue with this crutch for MinGW.

This partiall reverts commit 1074c2ffce.

Change-Id: I89d32f31281c3ef720bbc2a21d5a99bfd0066ba3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-12-08 09:38:09 +00:00
Leena Miettinen
698733afbf Doc: Fix some language issues in the Studio component docs
Task-number: QDS-2744
Change-Id: I472bb1d030c8119357b17b58b645fc0364f3cc5a
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-12-08 08:16:46 +00:00
Leena Miettinen
10132574a7 Doc: Describe all View menu commands
- Add Curve Editor and Transition Editor to list of Design mode views
- Describe Toggle States menu item

Task-number: QDS-2744
Change-Id: Ib83d7f4d6ccdb8af0ee66af8d5a4f5be40394591
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-12-08 08:16:30 +00:00
Kevin Funk
7e8d250fa6 qmljs: Simplify code
Should not have an impact on the behavior or performance iiuc.

Change-Id: I66f7b6773868a114c2c76fb2c0baca92cc58d0a9
Reviewed-by: Kevin Funk <kevin.funk@kdab.com>
2020-12-08 08:01:48 +00:00
Eike Ziller
5738418d41 Core: Use new MessageManager API
Bring messages pane to front when triggering an external tool or
command, write output silently and flash when tool finishes or fails.

Also bring pane to front if file renaming or removing fails (this should
happen only as a direct consequence of the user choosing this action).

Task-number: QTCREATORBUG-24430
Change-Id: Ib47431bd57a9c05bfdbfb03ad4c7cd38bdf3ddd1
Reviewed-by: hjk <hjk@qt.io>
2020-12-08 07:07:15 +00:00
Björn Schäpers
c422962709 QbsProject: Fix set LangaugeVersion for newer standards
I have some products which export c++20, some c++17 (not yet ported) and
some which do not specify the language itself. And sometimes I end up
with too much errors from the code model, because it sets the language
to C++11 or C++17.

Also adapted the C language.

Change-Id: I0056c8d873191d49164c3e7f3e4fdb24ccc1fb9b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-12-07 20:05:38 +00:00
Jarek Kobus
a0079b171f Make canceling of Type Hierarchy evaluation more responsive
On the beginning of the process of evaluating type hierarchy
the evaluating thread may freeze on a first call to
Snapshot::updateDependencyTable() for quite a long time
(e.g. when showing the type hierarchy for IPlugin class
inside Creator project - it may freeze up to about 3 seconds).
So, when we want to cancel the evaluation (e.g. when
we switch from "Type Hierarchy" into another view or when
closing Creator) we may freeze for this period. In order to
fix it we pass a future interface as an additional argument
for Snapshot::updateDependencyTable() and cancel the update
when cancellation of task was requested.

Change-Id: I2147f10a68989587476c30369ec2ac552a57d5ae
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-12-07 16:24:57 +00:00
Leena Miettinen
ca263cd44a Doc: Add links to videos
Task-number: QDS-2744
Change-Id: I1ffa0cd1cd4999c372c68ec180bcf89f31db7293
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-12-07 15:49:04 +00:00
hjk
8e0cb785dc Debugger: Drop alloc return value from dumper vectorData() helper
Only used for checks, do that within the function.

Change-Id: I4cc302864a9d3f8edac6f6364dfdac33b548e60a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-12-07 15:47:20 +00:00
Henning Gruendl
2d9de4f706 QmlDesigner: Fix evaluation dialog automatic close
Fix Qt Enterprise Evaluation dialog being child of the QtDS splashscreen
resulting in the dialog getting closed together with the splashscreen
after its 15 seconds timer runs out.

Task-number: QDS-3258
Change-Id: Ied7a883efc925491dae65ac90227573cc93e1167
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-12-07 15:34:53 +00:00
Eike Ziller
43249f655b CPaster: Use new message manager API
Only show the panel if an error occurs, or if the user opted to have the
paste link shown to him.

Task-number: QTCREATORBUG-24430
Change-Id: Ie474acbe2b4d3b6d3332111bdd7ae18b16bd8618
Reviewed-by: hjk <hjk@qt.io>
2020-12-07 15:06:30 +00:00
Kai Koehne
480edb9151 Fix Qt 5 specific comments in Qt applicaton wizards
Change-Id: I031c8d8284efe87009073b5ea0abf99f81a45615
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-12-07 14:57:31 +00:00
Kai Koehne
193becffbb Fix Qt Quick wizards with Default style and Qt 6
The Default style got renamed to 'Basic' style in Qt 6.0. The 'default' is now
to use the style of the system, if available.

This however caused the projects generated by the wizard to not start with Qt6:

  QQmlApplicationEngine failed to load component
  qrc:/main.qml: module "Default" is not installed

Work around this by not hardcoding the 'Default' style if set. It should be the
default for Qt 5, anyhow.

Fixes: QTCREATORBUG-24905
Change-Id: I71aff50b84e3d096b9a87b7e5b49e2df6821f938
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-12-07 14:57:18 +00:00
Kai Koehne
eb711d7bd6 Fix qtquickcontrols2.conf in QtDS examples for Qt 6
Since the default style got renamed to 'Basic',
Style=Default will cause a runtime error with Qt 6.0.0

Avoid this by not setting an explicit style.

Task-number: QTCREATORBUG-24905
Change-Id: I0f35e1dfb38536412da064d9f8ba88264485ef52
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-12-07 14:57:05 +00:00
Jarek Kobus
c400923308 Modernize Type Hierarchy
Don't freeze UI on request for show Type Hierarchy.
Move the lookup code into a separate thread.
Don't clear tree hierarchy when waiting for new one.
Show progress indicator on top of old hierarchy instead.
Add a task to ProgressManager when working on a new hierarchy.
Handle canceling the process of showing Type Hierarchy.
Implement simple progress reporting for this process.
Optimize a bit DerivedHierarchyVisitor.

Change-Id: I3894ac6ed3f4834831831f083f718f8385ca346f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-12-07 14:04:50 +00:00
hjk
493f44ac6a Debugger: Fix QObject children display for Qt6
Task-number: QTCREATORBUG-24098
Change-Id: If7b1e498bcbd191faecbcab9462f1d72331211f3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-12-07 13:52:57 +00:00
Alessandro Portale
f2dd45d8ce QmlDesigner: Fix dockwidgets.css for default theme
Use the dark background color explicitly. Also remove redundant CSS
declarations.

Task-number: QTCREATORBUG-24402
Change-Id: I052969e96f564e27c150ba86bfcb4dd156024240
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-12-07 13:23:09 +00:00
Alessandro Portale
e46955f627 QmlDesigner: Fix the color of some toolbar icons
Give them the standard Theme::IconsBaseColor that works well with all
themes.

Task-number: QTCREATORBUG-24402
Change-Id: I458d1b4a7b3cceb2d318ff4257b4aa173170a533
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-12-07 13:23:06 +00:00
Leena Miettinen
e9f7340816 Doc: Add missing docs for 2D effects
Moved the section to its own topic, because it was getting very
long. Also described the properties of each effect.

Fixes: QDS-3229
Change-Id: Ie93f4ca956bdca4afbd31e7606a47c4e1d1e5bb4
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-12-07 13:06:40 +00:00
Eike Ziller
41b0f60bc9 ProjectExplorer: Use new message manager API
Bring general messages pane to front when showing requested wizard
debugging information, otherwise flash.

Task-number: QTCREATORBUG-24430
Change-Id: Icb59542ca37bfe8b8e644e08464fe17abb1c5d93
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-12-07 13:05:59 +00:00
Eike Ziller
db2b085010 Meson: Use new message manager API
Avoid bringing general messages pane to front.
Flash when starting a process, write output silently afterwards.
Put an error into issues pane if parsing fails
Also don't log debug messages by default.

Task-number: QTCREATORBUG-24430
Change-Id: If4cbc1f48b0749b44410e2ac14d6796d63e4610e
Reviewed-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-12-07 13:05:36 +00:00
Eike Ziller
91395f1334 Add missing include
for makeUniquelyNumbered.
Amends 48ebaecb52

Change-Id: I52a16068907d012d6d3997464c067a02f92862fa
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-12-07 13:05:22 +00:00
Alessandro Portale
eccc16e996 ProjectExplorer: Use FancyLineEdit in AddRunConfigDialog
With place holder text, fancy delete button, more UI space and less
code.

Change-Id: I16a80c215ac18fdc088c13087d58481311b9b838
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-12-07 12:27:17 +00:00
Assam Boudjelthia
ec68b4e96c Android: fix SDK path on macOS
Change-Id: I369cf218eb2fd42ede04a6cb6b638d6fa6282994
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-12-07 11:51:40 +00:00
Raphaël Cotty
8f8fa81c30 Qbs: Fix executable path in equivalent command line
Use QbsSettings to get qbs executable file path.

Change-Id: Ie8e9dc85712a2a51ee14b5715cf5529ecd3b44c0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-12-07 11:38:03 +00:00
Eike Ziller
3f0e7bcbe1 Merge remote-tracking branch 'origin/4.14'
Change-Id: I9d1931b7862f4541ac7a064ff987128afd835cbe
2020-12-07 12:29:44 +01:00
Alessandro Portale
7622cc4c09 QmlDesigner: Bring back the preview zoom factor combobox
Fixes: QTCREATORBUG-25057
Change-Id: I52dadc8798a5271cef2dbca718a3e33dc3998958
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-12-07 10:39:07 +00:00
Leena Miettinen
f9b255b679 Doc: Hide QDS specific info from Qt Creator Manual
Group type and Event List are only available for QDS.

Change-Id: I244a774de07260b4cdad8769aba7cd4761029c05
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-12-07 10:29:38 +00:00
hjk
fba5effd41 Debugger: Adapt QMultiMap dumper test to Qt6
Task-number: QTCREATORBUG-24098
Change-Id: Iec811d90accd6fada7883e8bcb548ec0ab4c38f6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-12-07 08:56:44 +00:00
hjk
aa9e1ec106 Debugger: Adapt QSet dumper and tests to Qt6
Task-number: QTCREATORBUG-24098
Change-Id: Ib9b2c53ee763871873f0cc3ad4f8ba0152999328
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-12-07 08:56:39 +00:00
hjk
7e8c212c1a Coding style: Remove outdated recommendation of foreach()
Change-Id: I01eadfdbefededf3b71df492a0e29abdd3a3a93f
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-12-07 08:31:33 +00:00
Alessandro Portale
996ad4c8cb PluginManager test: Fix linkage for Qbs build system
Dependency on Utils is not exported by ExtensionSystem, therefore not
transitive.

Amends 41b73594ad

Change-Id: Iaa95ae16854cf760fdd32bc542297746b6351527
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-12-07 07:14:33 +00:00
Christian Stenger
40d83926a2 AutoTest: Use more specific types for test tree model
Allows to move over some static casts to the base tree model.

Change-Id: I19e322714a6026771139eeb0ded4645afb45aabe
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-12-07 05:33:16 +00:00
Andre Hartmann
1d9be08e90 Git: Pass only project path to Init Repository dialog
It makes no sense to have the project file here,
and under Windows it even creates confusion
as you have to delete the project file name
from the "Get Existing Directory" dialog.

Change-Id: I51887d5665b4c61b507d64f8bdcc50f3d10c49c4
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2020-12-06 17:43:38 +00:00
Alessandro Portale
79c4df1ea1 McuSupport: Register all .qch files in the SDK's docs/ directory
Instead of having a hard-coded list of .qch file names to register,
register all .qch files that are present in the Qt for MCUs SDK's docs/
directory.

Turning docs registration into a self-maintaining feature.

Fixes: QTCREATORBUG-25043
Change-Id: Idc7afb78b256bcbb3e8cd7f80fab6a356eb47aa3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Yoann Lopes <yoann.lopes@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-12-04 17:58:38 +00:00
Aleksei German
60e2a1b128 QmlDesigner: Fix for Rotation tool for FlowItem
Change-Id: Ic4c8c488d91e5983da6da1b424b52a4b240ded37
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-12-04 14:45:19 +00:00
Ivan Komissarov
f45cfbe634 Update Qbs submodule to the top of 1.18 branch
Change-Id: I9bca087996cad51c2bfe015e739d06ef73dac9cf
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-12-04 13:16:29 +00:00
hjk
5ca4427bb7 Debugger: Create list of arguments for manually created template types
This is one of the roadblocks for the current failing Qt 6 QVariant
dumper for self-registered types.

Change-Id: I304ce8e8aa3dfc5b3694b65198fbac4f42de6d4b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-12-04 11:41:35 +00:00
hjk
d861778ff1 Debugger: Adapt Qt6 QVariant(QHostAddress) dumper test
Just brush over the differences between the versions, the actual
contents is ok.

Change-Id: I4fe8e1a0e87ab6c4157a048f215b8abb13887cd4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-12-04 11:40:35 +00:00
hjk
54f281944d Debugger: Use @ as Qt namespace placeholder more widely
Change-Id: I73a7abaed17c1a8a1461a66e66860cba64d4f9d9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-12-04 11:17:20 +00:00
Eike Ziller
c5a70e7daa CMake: Use new MessageManager API
Flash when CMake is started, write all other output silently.
This avoids re-popping up the general messages pane all the time.

When an error occurs, that is put into the issues pane, so no need
to pop up the general messages pane for that either.

Task-number: QTCREATORBUG-24430
Change-Id: I07ae4182cbc43147fbb343b360baf9da7e65f224
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-12-04 10:52:52 +00:00