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 8988c0a382ca62cc8ff03fec2b044074fb1ece62
Showing with 6 additions and 3 deletions.
  1. +6 −3 components/WarningBox.qml
@@ -44,19 +44,22 @@ Rectangle {
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 8988c0a

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