diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2019-12-19 19:20:53 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2019-12-19 19:20:53 -0500 |
| commit | 4042186fac32ec13bbaca55b666faf026288d4c0 (patch) | |
| tree | a063e92f852b157717288d258fc946995d141cc5 /pages/settings | |
| parent | abd98b95f6e7d98544a0c1becc5aa719abfaeadb (diff) | |
| parent | 088d32e712a2c6e51a04f919c0ade96b643a49e3 (diff) | |
| download | monzero-gui-4042186fac32ec13bbaca55b666faf026288d4c0.tar.gz monzero-gui-4042186fac32ec13bbaca55b666faf026288d4c0.tar.xz monzero-gui-4042186fac32ec13bbaca55b666faf026288d4c0.zip | |
Merge pull request #2580
ba24fd7 SettingsInfo: open containing folder on wallet log path click (xiphon)
088d32e OSHelper: file preselection support (Windows and Mac) (xiphon)
Diffstat (limited to 'pages/settings')
| -rw-r--r-- | pages/settings/SettingsInfo.qml | 33 |
1 files changed, 26 insertions, 7 deletions
diff --git a/pages/settings/SettingsInfo.qml b/pages/settings/SettingsInfo.qml index 5139ab73..75420d72 100644 --- a/pages/settings/SettingsInfo.qml +++ b/pages/settings/SettingsInfo.qml @@ -132,14 +132,21 @@ Rectangle { MoneroComponents.TextBlock { Layout.fillWidth: true - Layout.maximumWidth: 360 color: MoneroComponents.Style.dimmedFontColor font.pixelSize: 14 - text: { - var wallet_path = walletPath(); - if(isIOS) - wallet_path = moneroAccountsDir + wallet_path; - return wallet_path; + property string walletPath: (isIOS ? moneroAccountsDir : "") + appWindow.walletPath() + text: "\ + <style type='text/css'>\ + a {cursor:pointer;text-decoration: none; color: #FF6C3C}\ + </style>\ + <a href='#'>%1</a>".arg(walletPath) + textFormat: Text.RichText + onLinkActivated: oshelper.openContainingFolder(walletPath) + + MouseArea { + anchors.fill: parent + acceptedButtons: Qt.NoButton + cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor } } @@ -261,7 +268,19 @@ Rectangle { Layout.fillWidth: true color: MoneroComponents.Style.dimmedFontColor font.pixelSize: 14 - text: walletLogPath + text: "\ + <style type='text/css'>\ + a {cursor:pointer;text-decoration: none; color: #FF6C3C}\ + </style>\ + <a href='#'>%1</a>".arg(walletLogPath) + textFormat: Text.RichText + onLinkActivated: oshelper.openContainingFolder(walletLogPath) + + MouseArea { + anchors.fill: parent + acceptedButtons: Qt.NoButton + cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor + } } Rectangle { |
