The release mouse event does not come through if we start a drag.
There was already a workaround that stopped working with 5.8 and
did rely on private API.
I removed all usage of private API and added a simple workaround
that synthesises a mouse release event.
The actual execution of the drag is now asynchronous to
ensure the release event is delivered properly.
I removed all dependencies on private API in the designer.
In Qt 5.9 the issue seems to be fixed in Qt.
The workaround does not seem to get in the way of the fix.
Eventually, the workaround can be removed.
Change-Id: I9b45b255da5e44c26aba2acf4a42f88537126f75
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
- rename Theming -> Theme
- made derived colors as Q_INVOKABLE methods available
- rename registerIconProvider -> setupTheme
- inside *.qml files use a singleton import instead of a context
Before this change, every request for a theme value copied the map into the
Qml context including the convert of values QVariant -> QJSString
Change-Id: I1c483fb591336b519d5adab8ad37b42bc5a06720
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Use the original fancy toolbar colors by removing the
Alpha channel.
* Use the splitter colors for borders to avoid white borders
in light themes.
* Use the FancyToolButtonHoverColor for buttons and combo boxes.
Change-Id: Id636e0713c8e2769c5eb03a115a60ccad8226f23
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
With this patch the Qt Quick Designer supports:
*Flat
*Flat Dark
*Flat Light
*Classic
I did not test the dark style.
I added a template engine for the .css files. The syntax for the .css
files
is identical to the QML syntax.
Known issues:
* The icons in the property editor do not play well with the
Flat Light style. We have to get proper Core:Icon support for the
icons
and most icons have to be simplified/flattened to fit the new style/
theme.
* Some colors in the connection editor are still dark and hardcoded. But
this looks ok together with all themes.
* The highlight colors are not taken from the theme, yet.
Change-Id: I94f2b75f92db8e131c2b15867dbabe9ae4b2f25a
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This allows to show more items in the library.
While we get more and more components it is important
that we can show the increasing amount of items properly.
Change-Id: Ifc5db011b65b7accf96af5192ce2702b6f112da6
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>