Changeset View
Changeset View
Standalone View
Standalone View
src/app/qml/listcomponents/BookTileTall.qml
Context not available. | |||||
52 | anchors.fill: parent; | 52 | anchors.fill: parent; | ||
---|---|---|---|---|---|
53 | onClicked: root.bookSelected(root.filename, root.currentPage); | 53 | onClicked: root.bookSelected(root.filename, root.currentPage); | ||
54 | onPressAndHold: root.pressAndHold(mouse); | 54 | onPressAndHold: root.pressAndHold(mouse); | ||
55 | onPressed: pressIndicatorAnimation.start(); | ||||
56 | onReleased: {pressIndicatorAnimation.stop(); pressIndicator.width = 0;pressIndicator.height = 0;} | ||||
57 | | ||||
58 | ParallelAnimation { | ||||
59 | id: pressIndicatorAnimation; | ||||
60 | NumberAnimation { | ||||
61 | target: pressIndicator; | ||||
62 | from: coverImage.paintedWidth/3; | ||||
63 | to: coverOutline.width; | ||||
64 | property: "width"; | ||||
65 | duration: 800; | ||||
66 | } | ||||
67 | NumberAnimation { | ||||
68 | target: pressIndicator; | ||||
69 | from: coverImage.paintedWidth/3; | ||||
70 | to: coverOutline.height; | ||||
71 | property: "height"; | ||||
72 | duration: 800; | ||||
73 | } | ||||
74 | NumberAnimation { | ||||
75 | target: pressIndicator; | ||||
76 | from: coverImage.paintedWidth/3; | ||||
77 | to: 0; | ||||
78 | property: "radius"; | ||||
79 | duration: 800; | ||||
80 | } | ||||
81 | } | ||||
55 | } | 82 | } | ||
56 | Item { | 83 | Item { | ||
57 | id: bookCover; | 84 | id: bookCover; | ||
Context not available. | |||||
100 | visible: running; | 127 | visible: running; | ||
101 | running: coverImage.status === Image.Loading; | 128 | running: coverImage.status === Image.Loading; | ||
102 | } | 129 | } | ||
130 | Rectangle{ | ||||
131 | id: pressIndicator; | ||||
132 | anchors.centerIn: coverImage; | ||||
133 | width: 0; | ||||
134 | height: 0; | ||||
135 | color: "transparent"; | ||||
136 | border.color:Kirigami.Theme.highlightColor; | ||||
137 | border.width:Kirigami.Units.smallSpacing; | ||||
138 | } | ||||
103 | } | 139 | } | ||
104 | QtControls.Label { | 140 | QtControls.Label { | ||
105 | id: bookTitle; | 141 | id: bookTitle; | ||
Context not available. |