mirror of
https://github.com/QRouland/UTPass.git
synced 2026-01-10 03:26:57 +00:00
Initial Commit : 0.0.1
This commit is contained in:
62
qml/components/PageStackLink.qml
Normal file
62
qml/components/PageStackLink.qml
Normal file
@@ -0,0 +1,62 @@
|
||||
import QtQuick 2.4
|
||||
import Ubuntu.Components 1.3
|
||||
import "../styles"
|
||||
|
||||
Item {
|
||||
id: pageStackLink
|
||||
|
||||
property string page
|
||||
property var params: {
|
||||
|
||||
}
|
||||
property string text
|
||||
|
||||
property bool commonBorder: true
|
||||
property int lBorderwidth: 0
|
||||
property int rBorderwidth: 0
|
||||
property int tBorderwidth: 0
|
||||
property int bBorderwidth: 0
|
||||
property int commonBorderWidth: 0
|
||||
property string borderColor: UbuntuColors.warmGrey
|
||||
|
||||
width: parent.width
|
||||
height: units.gu(6)
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
|
||||
Text {
|
||||
text: pageStackLink.text
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: units.gu(2)
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
|
||||
Icon {
|
||||
anchors.right: parent.right
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.rightMargin: units.gu(2)
|
||||
width: units.gu(4)
|
||||
height: units.gu(4)
|
||||
name: "go-next"
|
||||
color: UbuntuColors.orange
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
pageStack.push(page, params)
|
||||
}
|
||||
}
|
||||
|
||||
CustomBorder {
|
||||
id: cb
|
||||
commonBorder: pageStackLink.commonBorder
|
||||
lBorderwidth: pageStackLink.lBorderwidth
|
||||
rBorderwidth: pageStackLink.rBorderwidth
|
||||
tBorderwidth: pageStackLink.tBorderwidth
|
||||
bBorderwidth: pageStackLink.bBorderwidth
|
||||
borderColor: pageStackLink.borderColor
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user