diff options
| author | rating89us <45968869+rating89us@users.noreply.github.com> | 2021-05-19 18:36:44 +0200 |
|---|---|---|
| committer | rating89us <rating89us@rating89us.com> | 2021-05-29 04:02:19 +0200 |
| commit | 9d3864b7f09efc65d2f0e64f6579d5a3974721a2 (patch) | |
| tree | a4d0a39761280c3f6c744d61c433fb9ef3d08482 /pages | |
| parent | 937cb9825672d07a1917d2d9daf823802ec31d1b (diff) | |
| download | monzero-gui-9d3864b7f09efc65d2f0e64f6579d5a3974721a2.tar.gz monzero-gui-9d3864b7f09efc65d2f0e64f6579d5a3974721a2.tar.xz monzero-gui-9d3864b7f09efc65d2f0e64f6579d5a3974721a2.zip | |
Implement tooltips in multiple pages and components
Diffstat (limited to 'pages')
| -rw-r--r-- | pages/Account.qml | 2 | ||||
| -rw-r--r-- | pages/AddressBook.qml | 3 | ||||
| -rw-r--r-- | pages/History.qml | 24 | ||||
| -rw-r--r-- | pages/Receive.qml | 2 | ||||
| -rw-r--r-- | pages/Transfer.qml | 7 |
5 files changed, 34 insertions, 4 deletions
diff --git a/pages/Account.qml b/pages/Account.qml index 0a549163..56e3dd50 100644 --- a/pages/Account.qml +++ b/pages/Account.qml @@ -304,6 +304,7 @@ Rectangle { opacity: 0.5 Layout.preferredWidth: 23 Layout.preferredHeight: 21 + tooltip: qsTr("Edit account label") + translationManager.emptyString onClicked: pageAccount.renameSubaddressAccountLabel(index); } @@ -317,6 +318,7 @@ Rectangle { opacity: 0.5 Layout.preferredWidth: 16 Layout.preferredHeight: 21 + tooltip: qsTr("Copy address to clipboard") + translationManager.emptyString onClicked: { console.log("Address copied to clipboard"); diff --git a/pages/AddressBook.qml b/pages/AddressBook.qml index 7d28ba02..275a5a93 100644 --- a/pages/AddressBook.qml +++ b/pages/AddressBook.qml @@ -210,6 +210,7 @@ Rectangle { opacity: 0.5 Layout.preferredWidth: 20 Layout.preferredHeight: 20 + tooltip: qsTr("Send to this address") + translationManager.emptyString onClicked: { doSend(); } @@ -222,6 +223,7 @@ Rectangle { opacity: 0.5 Layout.preferredWidth: 23 Layout.preferredHeight: 21 + tooltip: qsTr("Edit address label") + translationManager.emptyString onClicked: { addressBookListView.currentIndex = index; @@ -236,6 +238,7 @@ Rectangle { Layout.preferredHeight: 21 color: MoneroComponents.Style.defaultFontColor opacity: 0.5 + tooltip: qsTr("Copy address to clipboard") + translationManager.emptyString onClicked: { console.log("Address copied to clipboard"); diff --git a/pages/History.qml b/pages/History.qml index e5635336..03d30c5e 100644 --- a/pages/History.qml +++ b/pages/History.qml @@ -958,6 +958,8 @@ Rectangle { label.font.family: FontAwesome.fontFamily fontSize: 18 width: 34 + tooltip: qsTr("Transaction details") + translationManager.emptyString + tooltipLeft: true MouseArea { state: "details" @@ -965,8 +967,14 @@ Rectangle { hoverEnabled: true z: parent.z + 1 - onEntered: parent.opacity = 0.8; - onExited: parent.opacity = 1.0; + onEntered: { + parent.opacity = 0.8; + parent.tooltipPopup.open() + } + onExited: { + parent.opacity = 1.0; + parent.tooltipPopup.close() + } } } @@ -988,6 +996,8 @@ Rectangle { label.font.family: FontAwesome.fontFamilyBrands fontSize: 18 width: 34 + tooltip: qsTr("Generate payment proof") + translationManager.emptyString + tooltipLeft: true MouseArea { state: "proof" @@ -995,8 +1005,14 @@ Rectangle { hoverEnabled: true z: parent.z + 1 - onEntered: parent.opacity = 0.8; - onExited: parent.opacity = 1.0; + onEntered: { + parent.opacity = 0.8; + parent.tooltipPopup.open() + } + onExited: { + parent.opacity = 1.0; + parent.tooltipPopup.close() + } } } } diff --git a/pages/Receive.qml b/pages/Receive.qml index aa7d35ec..f8a4cbdb 100644 --- a/pages/Receive.qml +++ b/pages/Receive.qml @@ -192,6 +192,7 @@ Rectangle { Layout.preferredWidth: 23 Layout.preferredHeight: 21 visible: index !== 0 + tooltip: qsTr("Edit address label") + translationManager.emptyString onClicked: { renameSubaddressLabel(index); @@ -207,6 +208,7 @@ Rectangle { opacity: 0.5 Layout.preferredWidth: 16 Layout.preferredHeight: 21 + tooltip: qsTr("Copy address to clipboard") + translationManager.emptyString onClicked: { console.log("Address copied to clipboard"); diff --git a/pages/Transfer.qml b/pages/Transfer.qml index 589cf374..5767c951 100644 --- a/pages/Transfer.qml +++ b/pages/Transfer.qml @@ -277,6 +277,7 @@ Rectangle { fontStyleName: "Solid" fontPixelSize: 18 text: FontAwesome.desktop + tooltip: qsTr("Grab QR code from screen") + translationManager.emptyString onClicked: { clearFields(); const codes = oshelper.grabQrCodesFromScreen(); @@ -295,6 +296,7 @@ Rectangle { fontStyleName: "Solid" text: FontAwesome.qrcode visible: appWindow.qrScannerEnabled + tooltip: qsTr("Scan QR code") + translationManager.emptyString onClicked: { cameraUi.state = "Capture" cameraUi.qrcode_decoded.connect(updateFromQrCode) @@ -304,6 +306,7 @@ Rectangle { MoneroComponents.InlineButton { fontFamily: FontAwesome.fontFamily text: FontAwesome.addressBook + tooltip: qsTr("Import from address book") + translationManager.emptyString onClicked: { middlePanel.addressBookView.selectAndSend = true; appWindow.showPageRequest("AddressBook"); @@ -483,12 +486,16 @@ Rectangle { horizontalAlignment: Text.AlignHCenter opacity: mouseArea.containsMouse ? 1 : 0.85 text: recipientModel.count == 1 ? FontAwesome.infinity : FontAwesome.times + tooltip: recipientModel.count == 1 ? qsTr("Send all unlocked balance of this account") : qsTr("Remove recipient") + translationManager.emptyString + tooltipLeft: true MouseArea { id: mouseArea anchors.fill: parent cursorShape: Qt.PointingHandCursor hoverEnabled: true + onEntered: parent.tooltipPopup.open() + onExited: parent.tooltipPopup.close() onClicked: { if (recipientModel.count == 1) { parent.parent.children[2].text = "(all)"; |
