aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2019-11-27 19:00:51 +0100
committerselsta <selsta@sent.at>2019-11-28 00:08:59 +0100
commit9e4bfb1ef25c4c49ef070ab7e4ff0fb4041bbd6a (patch)
tree9c13ed628ca5233e0db89335089072658232a747 /components
parentd5f4d5d93fa52876dc1fef591ea0210eab561d48 (diff)
downloadmonzero-gui-9e4bfb1ef25c4c49ef070ab7e4ff0fb4041bbd6a.tar.gz
monzero-gui-9e4bfb1ef25c4c49ef070ab7e4ff0fb4041bbd6a.tar.xz
monzero-gui-9e4bfb1ef25c4c49ef070ab7e4ff0fb4041bbd6a.zip
WarningBox: hover cursor and disable selecting text
Diffstat (limited to 'components')
-rw-r--r--components/WarningBox.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/components/WarningBox.qml b/components/WarningBox.qml
index 91f29bed..62f6912a 100644
--- a/components/WarningBox.qml
+++ b/components/WarningBox.qml
@@ -37,26 +37,26 @@ Rectangle {
source: "qrc:///images/warning.png"
}
- TextArea {
+ Text {
id: content
Layout.fillWidth: true
color: MoneroComponents.Style.defaultFontColor
font.family: MoneroComponents.Style.fontRegular.name
font.pixelSize: root.fontSize
horizontalAlignment: TextInput.AlignLeft
- selectByMouse: true
textFormat: Text.RichText
wrapMode: Text.WordWrap
- textMargin: 0
leftPadding: 4
rightPadding: 18
topPadding: 10
bottomPadding: 10
- readOnly: true
onLinkActivated: root.linkActivated();
- selectionColor: MoneroComponents.Style.textSelectionColor
- selectedTextColor: MoneroComponents.Style.textSelectedColor
+ MouseArea {
+ anchors.fill: parent
+ acceptedButtons: Qt.NoButton
+ cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor
+ }
}
}
}