diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2017-11-03 15:29:10 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2017-11-03 15:29:10 -0500 |
| commit | c58dfa913bb356368e12dc5248c4f5acdfe3934d (patch) | |
| tree | b50d0010ac51fa44405bcaec573dab03236ff9cb /MiddlePanel.qml | |
| parent | 6f95f8a7545bbdc25750412c54a92ddc5224b3ad (diff) | |
| parent | ceeb9b667fa35f92054c79942b593337fadcd08b (diff) | |
| download | monzero-gui-c58dfa913bb356368e12dc5248c4f5acdfe3934d.tar.gz monzero-gui-c58dfa913bb356368e12dc5248c4f5acdfe3934d.tar.xz monzero-gui-c58dfa913bb356368e12dc5248c4f5acdfe3934d.zip | |
Merge pull request #826
Remote nodes + mobile layout
Diffstat (limited to 'MiddlePanel.qml')
| -rw-r--r-- | MiddlePanel.qml | 48 |
1 files changed, 14 insertions, 34 deletions
diff --git a/MiddlePanel.qml b/MiddlePanel.qml index 404a9d40..a008a62a 100644 --- a/MiddlePanel.qml +++ b/MiddlePanel.qml @@ -29,6 +29,7 @@ import QtQml 2.0 import QtQuick 2.2 +// QtQuick.Controls 2.0 isn't stable enough yet. Needs more testing. //import QtQuick.Controls 2.0 import QtQuick.Controls 1.4 import QtQuick.Layouts 1.1 @@ -47,7 +48,7 @@ Rectangle { property string balanceText property string unlockedBalanceLabelText: qsTr("Unlocked Balance") + translationManager.emptyString property string unlockedBalanceText - property int minHeight: (appWindow.height > 800) ? appWindow.height : 800 + property int minHeight: (appWindow.height > 800) ? appWindow.height : 800 * scaleRatio // property int headerHeight: header.height property Transfer transferView: Transfer { } @@ -58,6 +59,7 @@ Rectangle { property Settings settingsView: Settings { } property Mining miningView: Mining { } property AddressBook addressBookView: AddressBook { } + property Keys keysView: Keys { } signal paymentClicked(string address, string paymentId, string amount, int mixinCount, int priority, string description) @@ -93,33 +95,6 @@ Rectangle { transferView.sendTo(address, paymentId, description); } - - // XXX: just for memo, to be removed - // states: [ - // State { - // name: "Dashboard" - // PropertyChanges { target: loader; source: "pages/Dashboard.qml" } - // }, State { - // name: "History" - // PropertyChanges { target: loader; source: "pages/History.qml" } - // }, State { - // name: "Transfer" - // PropertyChanges { target: loader; source: "pages/Transfer.qml" } - // }, State { - // name: "Receive" - // PropertyChanges { target: loader; source: "pages/Receive.qml" } - // }, State { - // name: "AddressBook" - // PropertyChanges { target: loader; source: "pages/AddressBook.qml" } - // }, State { - // name: "Settings" - // PropertyChanges { target: loader; source: "pages/Settings.qml" } - // }, State { - // name: "Mining" - // PropertyChanges { target: loader; source: "pages/Mining.qml" } - // } - // ] - states: [ State { name: "Dashboard" @@ -132,7 +107,7 @@ Rectangle { }, State { name: "Transfer" PropertyChanges { target: root; currentView: transferView } - PropertyChanges { target: mainFlickable; contentHeight: 1000 } + PropertyChanges { target: mainFlickable; contentHeight: 1000 * scaleRatio } }, State { name: "Receive" PropertyChanges { target: root; currentView: receiveView } @@ -152,11 +127,15 @@ Rectangle { }, State { name: "Settings" PropertyChanges { target: root; currentView: settingsView } - PropertyChanges { target: mainFlickable; contentHeight: 1200 } + PropertyChanges { target: mainFlickable; contentHeight: 1200 * scaleRatio } }, State { name: "Mining" PropertyChanges { target: root; currentView: miningView } PropertyChanges { target: mainFlickable; contentHeight: minHeight } + }, State { + name: "Keys" + PropertyChanges { target: root; currentView: keysView } + PropertyChanges { target: mainFlickable; contentHeight: minHeight + 200 * scaleRatio } } ] @@ -187,6 +166,11 @@ Rectangle { Layout.fillWidth: true Layout.fillHeight: true clip: true + + onFlickingChanged: { + releaseFocus(); + } + // Disabled scrollbars, gives crash on startup on windows // ScrollIndicator.vertical: ScrollIndicator { } // ScrollBar.vertical: ScrollBar { } // uncomment to test @@ -195,11 +179,7 @@ Rectangle { StackView { id: stackView initialItem: transferView - // anchors.topMargin: 30 - // Layout.fillWidth: true - // Layout.fillHeight: true anchors.fill:parent - // anchors.margins: 4 clip: true // otherwise animation will affect left panel delegate: StackViewDelegate { |
