forked from Public/monero-gui
Merge pull request #1271
3b76636Refactoring signal functions1378ae4Reset flickable scrollview to 0 Y position
This commit is contained in:
@@ -50,6 +50,7 @@ Rectangle {
|
|||||||
property string unlockedBalanceText
|
property string unlockedBalanceText
|
||||||
property int minHeight: (appWindow.height > 800) ? appWindow.height : 800 * scaleRatio
|
property int minHeight: (appWindow.height > 800) ? appWindow.height : 800 * scaleRatio
|
||||||
property alias contentHeight: mainFlickable.contentHeight
|
property alias contentHeight: mainFlickable.contentHeight
|
||||||
|
property alias flickable: mainFlickable
|
||||||
// property int headerHeight: header.height
|
// property int headerHeight: header.height
|
||||||
|
|
||||||
property Transfer transferView: Transfer { }
|
property Transfer transferView: Transfer { }
|
||||||
|
|||||||
101
main.qml
101
main.qml
@@ -1316,16 +1316,97 @@ ApplicationWindow {
|
|||||||
anchors.top: mobileHeader.bottom
|
anchors.top: mobileHeader.bottom
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
onDashboardClicked: { middlePanel.state = "Dashboard"; if(isMobile) hideMenu(); updateBalance(); }
|
onDashboardClicked: {
|
||||||
onTransferClicked: { middlePanel.state = "Transfer"; if(isMobile) hideMenu(); updateBalance(); }
|
middlePanel.state = "Dashboard";
|
||||||
onReceiveClicked: { middlePanel.state = "Receive"; if(isMobile) hideMenu(); updateBalance(); }
|
middlePanel.flickable.contentY = 0;
|
||||||
onTxkeyClicked: { middlePanel.state = "TxKey"; if(isMobile) hideMenu(); updateBalance(); }
|
if(isMobile) {
|
||||||
onSharedringdbClicked: { middlePanel.state = "SharedRingDB"; if(isMobile) hideMenu(); updateBalance(); }
|
hideMenu();
|
||||||
onHistoryClicked: { middlePanel.state = "History"; if(isMobile) hideMenu(); updateBalance(); }
|
}
|
||||||
onAddressBookClicked: { middlePanel.state = "AddressBook"; if(isMobile) hideMenu(); updateBalance(); }
|
updateBalance();
|
||||||
onMiningClicked: { middlePanel.state = "Mining"; if(isMobile) hideMenu(); updateBalance(); }
|
}
|
||||||
onSignClicked: { middlePanel.state = "Sign"; if(isMobile) hideMenu(); updateBalance(); }
|
|
||||||
onSettingsClicked: { middlePanel.state = "Settings"; if(isMobile) hideMenu(); updateBalance(); }
|
onTransferClicked: {
|
||||||
|
middlePanel.state = "Transfer";
|
||||||
|
middlePanel.flickable.contentY = 0;
|
||||||
|
mainFlickable.contentY = 0;
|
||||||
|
if(isMobile) {
|
||||||
|
hideMenu();
|
||||||
|
}
|
||||||
|
updateBalance();
|
||||||
|
}
|
||||||
|
|
||||||
|
onReceiveClicked: {
|
||||||
|
middlePanel.state = "Receive";
|
||||||
|
middlePanel.flickable.contentY = 0;
|
||||||
|
if(isMobile) {
|
||||||
|
hideMenu();
|
||||||
|
}
|
||||||
|
updateBalance();
|
||||||
|
}
|
||||||
|
|
||||||
|
onTxkeyClicked: {
|
||||||
|
middlePanel.state = "TxKey";
|
||||||
|
middlePanel.flickable.contentY = 0;
|
||||||
|
if(isMobile) {
|
||||||
|
hideMenu();
|
||||||
|
}
|
||||||
|
updateBalance();
|
||||||
|
}
|
||||||
|
|
||||||
|
onSharedringdbClicked: {
|
||||||
|
middlePanel.state = "SharedRingDB";
|
||||||
|
middlePanel.flickable.contentY = 0;
|
||||||
|
if(isMobile) {
|
||||||
|
hideMenu();
|
||||||
|
}
|
||||||
|
updateBalance();
|
||||||
|
}
|
||||||
|
|
||||||
|
onHistoryClicked: {
|
||||||
|
middlePanel.state = "History";
|
||||||
|
middlePanel.flickable.contentY = 0;
|
||||||
|
if(isMobile) {
|
||||||
|
hideMenu();
|
||||||
|
}
|
||||||
|
updateBalance();
|
||||||
|
}
|
||||||
|
|
||||||
|
onAddressBookClicked: {
|
||||||
|
middlePanel.state = "AddressBook";
|
||||||
|
middlePanel.flickable.contentY = 0;
|
||||||
|
if(isMobile) {
|
||||||
|
hideMenu();
|
||||||
|
}
|
||||||
|
updateBalance();
|
||||||
|
}
|
||||||
|
|
||||||
|
onMiningClicked: {
|
||||||
|
middlePanel.state = "Mining";
|
||||||
|
middlePanel.flickable.contentY = 0;
|
||||||
|
if(isMobile) {
|
||||||
|
hideMenu();
|
||||||
|
}
|
||||||
|
updateBalance();
|
||||||
|
}
|
||||||
|
|
||||||
|
onSignClicked: {
|
||||||
|
middlePanel.state = "Sign";
|
||||||
|
middlePanel.flickable.contentY = 0;
|
||||||
|
if(isMobile) {
|
||||||
|
hideMenu();
|
||||||
|
}
|
||||||
|
updateBalance();
|
||||||
|
}
|
||||||
|
|
||||||
|
onSettingsClicked: {
|
||||||
|
middlePanel.state = "Settings";
|
||||||
|
middlePanel.flickable.contentY = 0;
|
||||||
|
if(isMobile) {
|
||||||
|
hideMenu();
|
||||||
|
}
|
||||||
|
updateBalance();
|
||||||
|
}
|
||||||
|
|
||||||
onKeysClicked: {
|
onKeysClicked: {
|
||||||
passwordDialog.onAcceptedCallback = function() {
|
passwordDialog.onAcceptedCallback = function() {
|
||||||
if(walletPassword === passwordDialog.password){
|
if(walletPassword === passwordDialog.password){
|
||||||
|
|||||||
Reference in New Issue
Block a user