| BoxShadow.qml |
|
1722 |
- |
| CheckIndicator.qml |
|
2473 |
- |
| CMakeLists.txt |
|
1675 |
- |
| CursorDelegate.qml |
|
1006 |
- |
| ElevationEffect.qml |
|
8435 |
- |
| qquickmaterialbusyindicator.cpp |
Relevant Android code:
- core/res/res/anim/progress_indeterminate_rotation_material.xml contains
the rotation animation data.
- core/res/res/anim/progress_indeterminate_material.xml contains the trim
animation data.
- core/res/res/interpolator/trim_start_interpolator.xml and
core/res/res/interpolator/trim_end_interpolator.xml contain the start
and end trim path interpolators.
- addCommand() in core/java/android/util/PathParser.java has a list of the
different path commands available.
|
7654 |
- |
| qquickmaterialbusyindicator_p.h |
|
1470 |
- |
| qquickmaterialplaceholdertext.cpp |
This class makes it easier to animate the various placeholder text changes
for each type of text container (filled, outlined).
By doing animations in C++, we avoid having a bunch of states, transitions,
and animations (which are all QObjects) declared in QML, even if that text
control never gets focus and hence never needs them.
|
10324 |
- |
| qquickmaterialplaceholdertext_p.h |
|
3784 |
- |
| qquickmaterialprogressbar.cpp |
|
6694 |
- |
| qquickmaterialprogressbar_p.h |
|
1615 |
- |
| qquickmaterialripple.cpp |
|
13417 |
- |
| qquickmaterialripple_p.h |
|
2312 |
- |
| qquickmaterialtextcontainer.cpp |
This class exists because:
- Rectangle doesn't support individual radii for each corner (QTBUG-48774).
- We need to draw an interrupted (where the placeholder text is) line for outlined containers.
- We need to animate the focus line for filled containers, and we can't use "Behavior on"
syntax because we only want to animate activeFocus becoming true, not also false. To do this
requires imperative code, and we want to keep the QML declarative.
focusAnimationProgress has to be a property even though it's only used internally,
because we have to use QPropertyAnimation on it.
An advantage of doing the animation in C++ is that we avoid the memory
overhead of an animation instance even when we're not using it, and instead
create it on demand and delete it when it's done. I tried doing the animation
declaratively with states and transitions, but it was more difficult to implement
and would have been harder to maintain, as well as having more overhead.
|
13893 |
- |
| qquickmaterialtextcontainer_p.h |
|
4398 |
- |
| RadioIndicator.qml |
|
1518 |
- |
| RectangularGlow.qml |
|
6522 |
- |
| RoundedElevationEffect.qml |
|
1776 |
- |
| SliderHandle.qml |
|
1244 |
- |
| SwitchIndicator.qml |
|
4170 |
- |
| TextEditingContextMenu.qml |
|
819 |
- |