summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <[email protected]>2017-03-14 13:26:33 +0100
committerAleix Pol <[email protected]>2017-03-14 13:26:33 +0100
commit8f8482d19d53846561f7c6324556b3d9a6448581 (patch)
tree91e08653e64dd1a5ff87935ef73db1c567928790
parent8218ac3ad0e5d5b20bcc1518e54fb82d56e19d1a (diff)
Remove unneeded logic
It's in Kirigami now
-rw-r--r--discover/qml/DiscoverPage.qml36
1 files changed, 0 insertions, 36 deletions
diff --git a/discover/qml/DiscoverPage.qml b/discover/qml/DiscoverPage.qml
index 00c6331..1526f24 100644
--- a/discover/qml/DiscoverPage.qml
+++ b/discover/qml/DiscoverPage.qml
@@ -24,12 +24,6 @@ Kirigami.ScrollablePage
{
id: root
- /**
- * pageHeader: Component
- * Places an item on top of the view when the user scrolls, so that we can
- * have some UI available at all time.
- */
- property alias pageHeader: pageHeaderLoader.sourceComponent
property alias pageOverlay: overlayLoader.sourceComponent
readonly property Item overlay: Item {
@@ -42,36 +36,6 @@ Kirigami.ScrollablePage
id: overlayLoader
anchors.fill: parent
}
-
- Loader {
- id: pageHeaderLoader
- anchors {
- left: parent.left
- right: parent.right
- rightMargin: root.flickable ? root.width - (root.contentItem.x + root.contentItem.width) : 0
- }
- visible: y>-height
-
- Behavior on y {
- NumberAnimation {
- duration: Kirigami.Units.longDuration
- easing.type: Easing.InOutQuad
- }
- }
-
- states: [
- State {
- name: "top"
- when: root.flickable.contentY > 0
- PropertyChanges { target: pageHeaderLoader; y: 0 }
- },
- State {
- name: "scrolled"
- when: root.flickable.contentY <= 0
- PropertyChanges { target: pageHeaderLoader; y: -height }
- }
- ]
- }
}
readonly property var s1: Shortcut {