mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-24 04:29:23 +00:00
WarningBox: hover cursor and disable selecting text
This commit is contained in:
parent
d5f4d5d93f
commit
9e4bfb1ef2
1 changed files with 6 additions and 6 deletions
|
@ -37,26 +37,26 @@ Rectangle {
|
||||||
source: "qrc:///images/warning.png"
|
source: "qrc:///images/warning.png"
|
||||||
}
|
}
|
||||||
|
|
||||||
TextArea {
|
Text {
|
||||||
id: content
|
id: content
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
color: MoneroComponents.Style.defaultFontColor
|
color: MoneroComponents.Style.defaultFontColor
|
||||||
font.family: MoneroComponents.Style.fontRegular.name
|
font.family: MoneroComponents.Style.fontRegular.name
|
||||||
font.pixelSize: root.fontSize
|
font.pixelSize: root.fontSize
|
||||||
horizontalAlignment: TextInput.AlignLeft
|
horizontalAlignment: TextInput.AlignLeft
|
||||||
selectByMouse: true
|
|
||||||
textFormat: Text.RichText
|
textFormat: Text.RichText
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
textMargin: 0
|
|
||||||
leftPadding: 4
|
leftPadding: 4
|
||||||
rightPadding: 18
|
rightPadding: 18
|
||||||
topPadding: 10
|
topPadding: 10
|
||||||
bottomPadding: 10
|
bottomPadding: 10
|
||||||
readOnly: true
|
|
||||||
onLinkActivated: root.linkActivated();
|
onLinkActivated: root.linkActivated();
|
||||||
|
|
||||||
selectionColor: MoneroComponents.Style.textSelectionColor
|
MouseArea {
|
||||||
selectedTextColor: MoneroComponents.Style.textSelectedColor
|
anchors.fill: parent
|
||||||
|
acceptedButtons: Qt.NoButton
|
||||||
|
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue