diff options
| author | Aleix Pol <aleixpol@kde.org> | 2015-10-22 16:25:49 (GMT) |
|---|---|---|
| committer | Aleix Pol <aleixpol@kde.org> | 2015-10-22 16:25:49 (GMT) |
| commit | 9c739ae88555088541b19fc96e5f2e78f6681301 (patch) | |
| tree | ad2455c37296cce67ed699badca764c1c2245a21 | |
| parent | f22cea74d24b58b815ee345052c68424ab0fc42a (diff) | |
Add a margin on top of the PageHeaderredesign
| -rw-r--r-- | discover/qml/PageHeader.qml | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/discover/qml/PageHeader.qml b/discover/qml/PageHeader.qml index d141993..c0f61b5 100644 --- a/discover/qml/PageHeader.qml +++ b/discover/qml/PageHeader.qml @@ -19,20 +19,27 @@ import QtQuick 2.0 -GridItem -{ +Item { id: root - height: 50 - hoverEnabled: false - readonly property real internalMargin: 5 - default property alias content: paddingItem.data - Item { - id: paddingItem + height: 50 + item.anchors.topMargin + + GridItem + { + id: item anchors { fill: parent - margins: root.internalMargin + topMargin: 20 + } + hoverEnabled: false + + Item { + id: paddingItem + anchors { + fill: parent + margins: root.internalMargin + } } } } |
