aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/curveeditor/curveeditorstyle.h
Commit message (Collapse)AuthorAgeFilesLines
* Make locked curves brighterKnud Dollereder2023-06-221-2/+2
| | | | | | | | | | | Locked curves had roughly the same color as the background color of the curveeditor. They are now a little bit brighter in order to see them better. Fixes: QDS-10130 Change-Id: Ic9cfc8358d9e1f2d4df132b27cb286653a0c35e8 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Remove GPL-3.0+ from license identifiersKai Köhne2023-01-061-1/+1
| | | | | | | | | | | | | | | Since we also license under GPL-3.0 WITH Qt-GPL-exception-1.0, this applies only to a hypothetical newer version of GPL, that doesn't exist yet. If such a version emerges, we can still decide to relicense... While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only Change was done by running find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR GPL-3.0 WITH Qt-GPL-exception-1.0/LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0/g" {} \; Change-Id: I5097e6ce8d10233993ee30d7e25120e2659eb10b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* QmlDesigner: Make variables compile time constantMarco Bubke2022-09-221-2/+2
| | | | | | | | Change-Id: I5ef7a3cc1f3d070482311993a9ac9e9e68faa905 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Use SPDX license identifiersLucie Gérard2022-08-261-24/+2
| | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Update locking state from external views and cleanupKnud Dollereder2020-10-281-9/+26
| | | | | | | | | | | | | | | | | Improve treeview styling related to locking/pinning Use font icons. Show implicitly locked nodes by darkening text and icon. Show implicitly locked curves by darkening the text. Show unlocked/unpined icons only when hovering the mouse above the item. It is now possible to lock/pin multiple curves by locking/pinning the node items. Load unselected curves into the graphicsview when pinning them. Rename namespace DesignTools to QmlDesigner. Remove unused function from the timeline module. Get rid of a memory leak. Change-Id: I2c9c0a9e1ffe79520c4869178a11cc5825d04bbe Reviewed-by: Henning Gründl <henning.gruendl@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Add missing includeRobert Loehning2020-10-201-0/+2
| | | | | | | | Amends 3614ab81ce9726b17b0c725ff55e1ae5be3ab7d1 Change-Id: Ib8a02fe5829462379ae9a665b5c0e8e8832cc090 Reviewed-by: Knud Dollereder <knud.dollereder@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* QmlDesigner: Fix incorrect conversion between double and int/longEike Ziller2020-10-201-1/+1
| | | | | | | | | | | And fix macOS build which complained that std::abs with doubles is ambiguous (between int and long and long long). Amends aaf564cab7cbb0a79c37098bd9642a72cef9a9ba Change-Id: I87d4453afa4dda676cc27c219d7dbfc22fcee70a Reviewed-by: Knud Dollereder <knud.dollereder@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* CurveEditor: Fix bounding rect computation for the graphicssceneKnud Dollereder2020-10-191-1/+8
| | | | | | | Task-number: QDS-2957 Change-Id: I0019d538e7460e923b35024bd02f7186e1935f6b Reviewed-by: Henning Gründl <henning.gruendl@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Disallow the creation of invalid curveKnud Dollereder2020-09-291-0/+1
| | | | | | | | | but allow invalid initialized curves to be moved into a legal state. Visualize invalid curve-segments by painting them in the errorColor Fixes: QDS-2130 Change-Id: Ida44c3b4f5e3d113df7d1e8e7a2b965d26f43815 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Implement proper y-axis labelingKnud Dollereder2020-06-241-0/+1
| | | | | Change-Id: Ie2bdb4b85f168dc611a52303143a6a6fc110e3c3 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Fix issues related to curve locking and pinningKnud Dollereder2020-06-151-0/+2
| | | | | | | | | | | | | | | | | | - Prevent insertion of keyframes in locked curves. (QDS-2172 means locking, not pinning) - Unselect keyframes when the curve moves into locking state. - Make sure that locked curves are always at the bottom of the z-stack otherwise they might prevent non-locked keyframes from being selected. - Use the selection color as background for the whole row of a treeview-item if it was selected. - Always paint the locked/pinned/unlocked/unpinned icons in the treeview. - Fix wrong mouse-hit-test for the locked/pinned icon hover events. The delegate was sometimes wrongly assuming that the mouse is hovering over a certain icon Task-number: QDS-2172 Change-Id: I6caab3f9e8e61e0dc2738eca113d5e1eec420957 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Refactor GraphicsScene and GraphicsviewKnud Dollereder2020-04-061-0/+2
| | | | | | | | Make sure to deselect keyframes when clicking on an unselected handle Task-number: QDS-1033 Change-Id: I2b98188237f8a0618e6ff3e64280091583112196 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Add the ability to unify keyframe handlesKnud Dollereder2020-03-251-0/+3
| | | | | | Task-number: QDS-568 Change-Id: I5b102423e8e166d41edf199c42305cee102e8b54 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Improve visual feedback of selectionsKnud Dollereder2020-03-181-2/+5
| | | | | | | | | | | | | | | | | - 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>
* QmlDesigner: Add icons to curve editorThomas Hartmann2019-08-131-4/+4
| | | | | Change-Id: I77f9b28f8cfe04022571d9c0cc092b9206c4df60 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* QmlDesigner: Use backspace on Mac instead of deleteThomas Hartmann2019-08-121-1/+5
| | | | | | | | | | This is what most users expect. Task-number: QDS-823 Change-Id: I3955d1afcdc6686d8d0f0150e335f453bd253633 Reviewed-by: Brook Cronin <brook.cronin@qt.io> Reviewed-by: Knud Dollereder <knud.dollereder@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Connect CurveEditor edits to the timeline moduleKnud Dollereder2019-08-081-0/+4
| | | | | Change-Id: Ic00e0840da34bdbb8627b2fe2d8546a867b24966 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Add curve editorKnud Dollereder2019-06-191-0/+125
Moved qmldesignerextension into component Updated build systems Change-Id: I8d2d0757a1639a472d426b66c0c8ae6fb84cc3d2 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>