Commit Graph

63610 Commits

Author SHA1 Message Date
Knud Dollereder
d72e18da2d Use QEasing instead of Bezier to paint the curve segments
This way "failure state" is reflected in the appearance of the curve item

Change-Id: I997f86f1a6072eaf65c77f2df0afd53a80dc0d0e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-03-19 09:45:48 +00:00
Christian Kandeler
ef6af1b7df OutputFormatter: Do the newline handling centrally
All output formatters are line-based, and they all did their own line
splitting and, if they didn't entirely ignore it, handling of partial
lines.
Instead, we now do all the book-keeping in the base class, and the
subclasses always work with complete lines.

Change-Id: I0b0df7951d0e4f6601f4d912230071784c87b3d3
Reviewed-by: hjk <hjk@qt.io>
2020-03-19 09:31:02 +00:00
Alessandro Portale
7675296fcf McuSupport: Make hardcoded target list "semi data-driven"
This change pushes the hard-coded list a bit towards a "data-driven"
approach. That way, the planned switch to the .json files based apporach
(see UL-2012) becomes less of a change.

Some target entries are added to match the current target list in Qt
for MCUs packages.

If we don't manage to get the .json-based target listing in place, this
could even serve as fall-back.

Task-number: UL-2012
Change-Id: If39e5d581ac19468b6f52ed221ec2d39bfab9f80
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2020-03-19 08:42:04 +00:00
Eike Ziller
c8a2ea5433 Merge remote-tracking branch 'origin/4.12'
Conflicts:
	src/plugins/qmldesigner/components/curveeditor/detail/graphicsview.cpp

Change-Id: I2a0ccb84560174c5170d5baaff526c0e095f0ba0
2020-03-19 09:35:50 +01:00
Miikka Heikkinen
ff6dd4dc2e QmlDesigner: Fix selection issues in navigator and 3d edit view
Fixed multiple issues with showing correct selection in navigator and
3d edit view:
- Dragging items from item library selects only that item,
  regardless if drag was done to 3d edit view or navigator
- Selection is shown correctly after reparenting items, including
  multiselection reparenting
- Adding a new item to the active scene now shows selection box
  correctly for that item

Change-Id: I5156ca4c22e606c41e1e346ea5c32c3d70d89f5e
Fixes: QDS-1577
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-03-19 08:12:55 +00:00
Miikka Heikkinen
bcfaa8cd37 QmlDesigner: Fix missing selection box when scene changes
Explicitly change the selection back to previous selection after
a scene change in puppet. Also reduced the existing timeout for
executing the pending selection command after calling
ensureSelectionBoxes, as we now explicitly render the next frame after
selection change and don't have to wait for rendering to trigger
otherwise.

Change-Id: Ibe8004890910ae15e7ac3172165bc72463c1e5cc
Fixes: QDS-1792
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-03-19 08:12:37 +00:00
Friedemann Kleint
4d48795934 TaskList: Do not save files in default session
Otherwise, when relaunching Qt Creator after working
with task lists, the same list is reloaded.

Amends 4eb633fd77.

Change-Id: If3bee39a30b9876e42f2b35f65eebc39ef3951bf
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2020-03-19 07:41:15 +00:00
hjk
ff33e4a57a Android: Fix a wrong use of QProcess::startDetached()
Change-Id: I447295611c8254afa85d7d60e29bf8a417d08960
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-03-19 07:26:51 +00:00
Tim Jenssen
cd3db4c093 amend "fix QPainterPath against Qt 5.15.0"
Change-Id: Ic950cf2670087c9c9707fa3be0c0ae198620df4f
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-03-18 19:04:31 +00:00
Robert Loehning
93091bb6b6 Add comments for unclear "open terminal" strings
Change-Id: I74404897c4f477c29983febaadfd0397142881e6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-03-18 18:27:10 +00:00
Tim Jenssen
a72acde713 fix QPainterPath against Qt 5.15.0
Change-Id: I08aaf6886b04407f1e52ca4f56607c81fccec85c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-03-18 17:59:56 +00:00
Knud Dollereder
3e86ed81d9 Improve visual feedback of selections
- The handles can now take 4 kinds of colors:
   1) Unselected.
   2) Handles influenced by a selected keyframe take the selection-color.
   3) Handles that are about to be moved (the mouse hovers over it) take
      the hover color.
   4) Handles that are about to be indirectly moved (Handles that are influenced by the hover handles)
      take the activate color

- Apply some colors of the Theme to the curve-editor.

- Fixed a drag handle bug. (The bounding box for the handle was wrong)

Change-Id: Ib474c714aae8bf88a5fb916cbef62deb29bc483e
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-03-18 15:33:19 +00:00
Christian Kandeler
070aca8fea OutputFormatter: Make more functions private
Change-Id: Ifde7ce2e685f8ad87e636a9825a5a4c649a6e23f
Reviewed-by: hjk <hjk@qt.io>
2020-03-18 14:58:32 +00:00
hjk
c3420c7fc3 Android: Remove AndroidConfig::updateDependenciesConfig()
Not used. Amends f46099d21e.

Change-Id: Ib943549f4a2171d8a1fe11c8f8aa303e6ddb8f16
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-03-18 14:52:43 +00:00
Assam Boudjelthia
819663c12f Android: AVD Manager don't highlight header elements
The highlighted headers gets a bit annoying and serves nothing.

Change-Id: I5061792ee080cb10740d2dedc26f06f499043ac1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-03-18 14:06:16 +00:00
Assam Boudjelthia
86090059dd Android: remove unnecessary minimumSize limit to permissions listView
The minimumSize can cause the manifest editor UI to have a vertical
scroll bar even if it's not needed on some small displays.

Change-Id: I78b855d63d5a5f16a77ce58b86f0537f526aec44
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-03-18 14:05:51 +00:00
Christian Kandeler
f4473a6da8 OutputFormatter: De-virtualize the clear() function
... and make it also clear the text edit.

Change-Id: Ifd073167b8afc27f3adafca1bdaf95316be7fdaa
Reviewed-by: hjk <hjk@qt.io>
2020-03-18 13:54:31 +00:00
Christian Kandeler
438195ae83 OutputFormatter: Remove unneeded function and include statement
Change-Id: I7372a340660e0e927c3e8e83dd438d5fa32304eb
Reviewed-by: hjk <hjk@qt.io>
2020-03-18 13:54:05 +00:00
Christian Kandeler
054e7c2164 OutputFormatter: Remove extra carriage return handling
There are no \r\n sequences in the text anymore at this point.

Change-Id: I3fc220e60ba481f8f8928f74500d18c450ec2e72
Reviewed-by: hjk <hjk@qt.io>
2020-03-18 13:52:59 +00:00
Christian Kandeler
34cf96d645 OutputFormatter: Simplify newline handling
There does not seem to be a reason to remove trailing newlines and re-
insert them on the next call. Presumably, this is related to historical
auto-newline magic.

Change-Id: If4dc8acf022d3895b41b887af25d63cca36bf8a4
Reviewed-by: hjk <hjk@qt.io>
2020-03-18 13:52:41 +00:00
Christian Kandeler
9348ac5fec Utils: Remove the *SameLine OutputFormat enums
Presumably, they were intended for output that shouldn't get an
automatic newline, but if there ever was such a thing as automatic
newlines, it must have evaporated over time. All users of
OutputFormatter provide a newline if they want one.

Change-Id: Ibd219b7305fd503ce075d6f77930d2b538d5e2e8
Reviewed-by: hjk <hjk@qt.io>
2020-03-18 13:52:17 +00:00
Christian Kandeler
80293aac93 OutputFormatter: Simplify logic
Change-Id: I092cdb351f7530284e915cd4955973b21f2577b5
Reviewed-by: hjk <hjk@qt.io>
2020-03-18 13:51:49 +00:00
Leena Miettinen
eecd2a5aa1 Doc: Fix QDoc warnings in Core plugin classes
Task-number: QTCREATORBUG-23620
Change-Id: Idf1fb2b3f930812c3cf18b9f8ced03fb8e0947be
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-03-18 13:39:43 +00:00
hjk
b4a9801f05 Android: Drop some unneeded semicolons in class declaration
Less warnings. Amends f46099d21e.

Change-Id: I50f0bec7b0db9d9e16191523b183496c4cd5b552
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-03-18 13:33:11 +00:00
Thomas Hartmann
a999295576 QmlDesigner: Add include for QPainterPath
Change-Id: Ia7e24eab0f33d628bf7c50287d7dd6c72634bc42
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-03-18 12:37:53 +00:00
Assam Boudjelthia
41dd8dc8ef Android: read SDK configuration from user editable path
By default, copy the sdk_definitions.json to Qt Creator user resource
path. The user can use that to make any updates if desired.

Add SdkDownloader instance as a member of AndroidSettingsWidget.

Change-Id: Ieabc9c6ddecbe63586f750b26bcf4ca990caee26
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-03-18 10:53:15 +00:00
Assam Boudjelthia
76c2208bac Android: Add windows usb drivers to SDK essentials
Add "extras;google;usb_driver" to essentials packages to be installed
automatically. So, change would also account for platform specific
packages.

Change-Id: I9b452b9ee30be9f606ca77fcd79712d66fab84e7
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
2020-03-18 10:50:28 +00:00
Eike Ziller
9e0009803c Fix lupdate issues
Change-Id: I26f08ae82354c178f6d26f9138796328b50bfba8
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2020-03-18 10:45:15 +00:00
Robert Loehning
d1daf6a542 Android: Add missing space
Change-Id: I061c91c9f48579179591dc912ab3bd48c13af0b0
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-03-18 10:30:05 +00:00
Christian Stenger
4fefbbcb66 QbsPM: Pass enabled information to code model
If a project part is not enabled let the code model know
about it as others may refer to this information as well.
Fixes an issue with the AutoTest plugin when it tries
to run a test for which no build targets will be generated
at all as it is disabled by some condition.

Change-Id: I342e8dde0a171084894ec59fdb462d7e9526c8db
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-03-18 09:28:41 +00:00
Christian Stenger
5a562bd9b1 AutoTest: Fix possible crash
Re-triggering runOrDebugTests() should be done
only once to avoid the test runner interfering
itself and crashing QC.
Amends 0f60f120d2.

Change-Id: I49f666f2c96730729ef54d8d8781d4058b3e0cca
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-03-18 09:08:32 +00:00
Knud Dollereder
5b000d17cb QmlDesigner: Add the ability to modify the animation range
Add the ability to modify the animation range from the curve editor

Fix a synchronization issue between timeline and curve editor when
the animation contains pinned curves

Change-Id: I89dda234063259f41d662749d696f5fc8a04f988
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
v4.12.0-beta2
2020-03-17 17:19:14 +00:00
Tobias Hunger
0fe2b961b9 CppEditor: Quieten moc warnings during CMake build
Change-Id: If8791e85d519b4a20ffa7c9d9302000d07ea605e
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-03-17 14:32:13 +00:00
Christian Stenger
0f60f120d2 AutoTest: Handle async updates of executable information
When opening or creating a project for the first time the
executable path of the application targets may be empty
until the build system has updated this after the first
successful build.
This update happens asynchronously, so we might need to
postpone the test execution a bit and wait for the
respective update.

Change-Id: I63b5c45f6ecb194020ea36bbb5c9486a4dcc004c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-03-17 14:32:02 +00:00
Tobias Hunger
bccf50827c ModelEditor: Quieten warning from moc during CMake build
Change-Id: I0c777421487cac6022de651cc15e54704b796c3e
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-03-17 14:31:58 +00:00
Tobias Hunger
46138a939f QML2Puppet: Quieten CMake build when no Quick3D was found
Each of the files added by Quick3D is wrapped in an ifdef, so
that moc sees empty files and warns about them.

Change-Id: I565eab6cbc33bd0d7eb2be681d274c092a7cbaed
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-03-17 14:31:17 +00:00
Richard Weickelt
216de34207 Update qbs submodule to HEAD of the 1.16 branch
Change-Id: I4a8621d466893715a3117f02bcf0368d6c5bc6de
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-03-17 14:00:54 +00:00
hjk
203597eceb RemoteLinux: Declare step id constants publicly
... so the steps can be referred to by Id only in some places in
Qdb (and Qnx later), thus weakening the hard compile-time dependencies
between the plugins.

Change-Id: Ia3000b5044a8d6eb29a424a05bccb88a4c6126ab
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-03-17 13:46:08 +00:00
Assam Boudjelthia
6bcd3cc4ad Android: AVD manager move "Start" button up in the layout
The start button being in the middle looks weird and not desired
from a UX perspective.

Change-Id: I524f61a8963aa7d81f50181150a2af3b94acfacf
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-03-17 10:05:23 +00:00
Eike Ziller
ed5e6a4999 Add some additional shortcuts for actions
Add Cmd+Shift+- for decreasing font size on macOS.
Do not add Cmd+= for increasing size, because it conflicts with the
existing shortcut for "Replace and Find Next".

Sprinkle some Backspace shortcuts in addition to Delete for removing
items. There are (laptop) keyboards that either do not have a designated
Delete key (requiring Fn+Backspace) or where the Delete key is not
conveniently located/sized, and there is no benefit in making the
distinction in that case anyhow.

Fixes: QTCREATORBUG-706
Fixes: QTCREATORBUG-13733
Change-Id: I06274a9810b82800ec6158a883c95d2a7ae2465e
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-03-17 09:39:37 +00:00
Christian Kandeler
0ff5bf75e1 Move some code from OutputWindow to OutputFormatter
That's where it belongs: The logic there is applicable to all output
formatters, not just those used via an output window.

Change-Id: Idf4ca8d22631ca96feb97553f28724c0275e0bf8
Reviewed-by: hjk <hjk@qt.io>
2020-03-17 09:39:12 +00:00
Leena Miettinen
63fc9d8159 UVSC: Fix UI text according to the guidelines
https://doc.qt.io/qtcreator-extending/qtcreator-ui-text.html

Task-number: QTCREATORBUG-23683
Change-Id: Ibbe4e6e7fd147bf6cb2b4d478a4b938e62d06075
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Reviewed-by: hjk <hjk@qt.io>
2020-03-17 09:36:13 +00:00
Leena Miettinen
5f775e9edc Bare Metal: Fix UI text to follow guidelines
https://doc.qt.io/qtcreator-extending/qtcreator-ui-text.html

Task-number: QTCREATORBUG-23683
Change-Id: I1e4dbe8aae5c805ef21f49fb519e7e200a54302d
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Reviewed-by: hjk <hjk@qt.io>
2020-03-17 09:35:55 +00:00
Alessandro Portale
550e4bb98c McuSupport: Prepare for dynamic targets detection of SDK
Move around some code to keep the following changes understandable.

Task-number: UL-2012
Change-Id: Ib05699b893d2f7d1cf846507adb198b893187954
Reviewed-by: hjk <hjk@qt.io>
2020-03-17 09:29:21 +00:00
Christian Stenger
f88789081d Utils: Fix missing include
Amends 2307c61c95.

Change-Id: I7297d5a94b9ab6faaf47fcc642f883546cf8f164
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-03-17 08:55:48 +00:00
Eike Ziller
31cc9b8e69 Make it possible to set more than one shortcut per action
Multiple shortcuts per action make it possible to configure friendlier
behavior.
E.g. on macOS decreasing/increasing font sizes, and deleting elements
usually have two shortcuts each. But also custom configurations that
assign a different key to a common function without removing the default
can be useful.

In this patch the functionality is still pretty much hidden from the
user, even though there is a "secret" way to enter such multiple
shortcuts in the settings dialog, by separating shortcuts with
" | ".

Task-number: QTCREATORBUG-72
Change-Id: I16bec0a71aaf4abf50335b0fd7da620c73b31777
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-03-17 08:55:10 +00:00
Eike Ziller
2307c61c95 Factor an overlay widget out of progress indicator
The principle of having a widget on top of all other children of the
same parent, for the purpose of painting an overlay, is generic.

Change-Id: I6d3ee89cc51354988fedcc40340bb45a065db607
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-03-17 08:39:22 +00:00
Leena Miettinen
e0d38ab353 Doc: Update instructions for creating plugins
Fixes: QTCREATORBUG-23701
Change-Id: I8e5569512eee87b18ddaeedde87122015e69b821
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2020-03-17 08:34:24 +00:00
Assam Boudjelthia
c03cc13bba Android: fix OpenSSL download minor wrong condition
Silent bool should be reversed.

Change-Id: I2b8506eb7af95dc51fab8e911c548dac766ce090
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-03-17 06:33:32 +00:00
Denis Shienkov
3ad7ef4796 QbsPM: Fix wrong {GCC|Clang} compiler name and prefix handling
When the GCC or Clang compiler name ends with the version sub-string
(f.e. arm-none-eabi-gcc-8.2.1.exe), this leads to the wrong cCompilerName
detection, that causes the project parsing errors and disables the project:

  The following properties are not set. Set them in your profile or product:
  cpp.compilerIncludePaths
  cpp.compilerFrameworkPaths
  cpp.compilerLibraryPaths

  Product 'xyz' had errors and was disabled.

Now we return a proper prefix (e.g. arm-none-eabi-) and cCompilerName
with a version (e.g. 'gcc-8.2.1.exe')

Change-Id: I5dd42a343a0982326ed0f23b821e5016b8df39f1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2020-03-16 18:37:18 +00:00