2017-08-24 12:27:00 +03:00
|
|
|
import QtQuick 2.0
|
|
|
|
|
2018-03-31 04:25:20 +03:00
|
|
|
import "../components" as MoneroComponents
|
2017-12-07 18:33:46 +02:00
|
|
|
|
2017-08-24 12:27:00 +03:00
|
|
|
TextEdit {
|
2018-03-31 04:25:20 +03:00
|
|
|
color: MoneroComponents.Style.defaultFontColor
|
|
|
|
font.family: MoneroComponents.Style.fontRegular.name
|
2018-04-21 14:17:53 +03:00
|
|
|
selectionColor: MoneroComponents.Style.dimmedFontColor
|
2017-08-24 12:27:00 +03:00
|
|
|
wrapMode: Text.Wrap
|
|
|
|
readOnly: true
|
|
|
|
selectByMouse: true
|
2017-12-08 23:28:12 +02:00
|
|
|
// Workaround for https://bugreports.qt.io/browse/QTBUG-50587
|
|
|
|
onFocusChanged: {
|
|
|
|
if(focus === false)
|
|
|
|
deselect()
|
|
|
|
}
|
2017-08-24 12:27:00 +03:00
|
|
|
}
|