You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
1.9 KiB
83 lines
1.9 KiB
3 years ago
|
import QtQuick 2.7
|
||
|
import QtQuick.Controls 2.0
|
||
|
import QtQuick.Layouts 1.2
|
||
|
import QtGraphicalEffects 1.0
|
||
|
import QtQuick.Window 2.0
|
||
|
import QtQuick.Controls.Styles 1.4
|
||
|
import QtQuick.Dialogs 1.2
|
||
|
|
||
|
import "."
|
||
|
import "common"
|
||
|
import "wallet"
|
||
|
import "wallet/send"
|
||
|
|
||
|
|
||
|
Rectangle {
|
||
|
width: 1600
|
||
|
height: 800
|
||
|
color: "transparent"
|
||
|
|
||
|
property WalletDashBoardPage walletDashboardPage: WalletDashBoardPage {
|
||
|
stackView: walletView
|
||
|
visible: false
|
||
|
}
|
||
|
|
||
|
property SendPage sendPage: SendPage {
|
||
|
stackView: walletView
|
||
|
visible: false
|
||
|
}
|
||
|
|
||
|
property ReceivePage receivePage: ReceivePage {
|
||
|
stackView: walletView
|
||
|
visible: false
|
||
|
}
|
||
|
|
||
|
StackView {
|
||
|
id: walletView
|
||
|
anchors.fill: parent
|
||
|
|
||
|
pushEnter: Transition {
|
||
|
PropertyAnimation {
|
||
|
property: "x"
|
||
|
from: walletView.width
|
||
|
to: 0
|
||
|
duration: 300
|
||
|
easing.type: Easing.OutCubic
|
||
|
}
|
||
|
}
|
||
|
pushExit: Transition {
|
||
|
PropertyAnimation {
|
||
|
property: "x"
|
||
|
from: 0
|
||
|
to: -walletView.width
|
||
|
duration: 300
|
||
|
easing.type: Easing.OutCubic
|
||
|
}
|
||
|
}
|
||
|
popEnter: Transition {
|
||
|
PropertyAnimation {
|
||
|
property: "x"
|
||
|
from: -walletView.width
|
||
|
to: 0
|
||
|
duration: 300
|
||
|
easing.type: Easing.OutCubic
|
||
|
}
|
||
|
}
|
||
|
popExit: Transition {
|
||
|
PropertyAnimation {
|
||
|
property: "x"
|
||
|
from: 0
|
||
|
to: walletView.width
|
||
|
duration: 300
|
||
|
easing.type: Easing.OutCubic
|
||
|
}
|
||
|
}
|
||
|
|
||
|
initialItem: walletDashboardPage
|
||
|
}
|
||
|
|
||
|
function onPageCompleted() {
|
||
|
walletDashboardPage.onPageCompleted();
|
||
|
}
|
||
|
}
|