Skip to content
Permalink
Browse files

WarningBox: hover cursor and disable selecting text

  • Loading branch information
selsta committed Nov 27, 2019
1 parent d5f4d5d commit 9e4bfb1ef25c4c49ef070ab7e4ff0fb4041bbd6a
Showing with 6 additions and 6 deletions.
  1. +6 −6 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
}
}
}
}

0 comments on commit 9e4bfb1

Please sign in to comment.
You can’t perform that action at this time.