1
mirror of https://github.com/monero-project/monero-gui synced 2024-12-01 08:11:54 +01:00
monero-gui/components/TextBlock.qml
2019-04-24 05:37:35 +02:00

18 lines
459 B
QML

import QtQuick 2.9
import "../components" as MoneroComponents
TextEdit {
color: MoneroComponents.Style.defaultFontColor
font.family: MoneroComponents.Style.fontRegular.name
selectionColor: MoneroComponents.Style.textSelectionColor
wrapMode: Text.Wrap
readOnly: true
selectByMouse: true
// Workaround for https://bugreports.qt.io/browse/QTBUG-50587
onFocusChanged: {
if(focus === false)
deselect()
}
}