1
0

replace swipeview, send & receive now dialogs

send mostly working, though no user entered payment yet
This commit is contained in:
Sander van Grieken
2022-09-23 12:14:19 +02:00
parent dc78ba3c04
commit 15c76114c6
8 changed files with 556 additions and 72 deletions

View File

@@ -0,0 +1,24 @@
import QtQuick 2.6
import QtQuick.Controls 2.15
Item {
id: root
property alias text: buttonLabel.text
property alias font: buttonLabel.font
signal clicked
implicitWidth: buttonLabel.width + constants.paddingXXLarge
implicitHeight: buttonLabel.height + constants.paddingXXLarge
Label {
id: buttonLabel
anchors.centerIn: parent
}
MouseArea {
anchors.fill: root
onClicked: root.clicked()
}
}

View File

@@ -45,7 +45,7 @@ Item {
x: constants.paddingSmall
width: delegate.width - 2*constants.paddingSmall
Item { Layout.columnSpan: 3; Layout.preferredWidth: 1; Layout.preferredHeight: 1}
Item { Layout.columnSpan: 3; Layout.preferredWidth: 1; Layout.preferredHeight: constants.paddingSmall }
Image {
readonly property variant tx_icons : [
@@ -113,15 +113,17 @@ Item {
}
Component.onCompleted: updateText()
}
Item { Layout.columnSpan: 3; Layout.preferredWidth: 1; Layout.preferredHeight: 1 }
Item { Layout.columnSpan: 3; Layout.preferredWidth: 1; Layout.preferredHeight: constants.paddingSmall }
}
}
Rectangle {
visible: delegate.ListView.section == delegate.ListView.nextSection
Layout.fillWidth: true
// Layout.fillWidth: true
Layout.preferredWidth: parent.width * 2/3
Layout.alignment: Qt.AlignHCenter
Layout.preferredHeight: constants.paddingTiny
color: Qt.rgba(0,0,0,0.10)
color: Material.background //Qt.rgba(0,0,0,0.10)
}
}