Remove HRichLabel component

Sparsly used and inflexible, just use HLabel
This commit is contained in:
miruka
2020-07-11 23:42:49 -04:00
parent 02982f9dc3
commit 229fbee298
5 changed files with 20 additions and 23 deletions

View File

@@ -4,7 +4,9 @@ import QtQuick 2.12
import QtQuick.Layouts 1.12
import ".."
HRichLabel {
HLabel {
property HTile tile
textFormat: Text.StyledText
font.pixelSize: theme.fontSize.small
verticalAlignment: Qt.AlignVCenter
@@ -16,9 +18,12 @@ HRichLabel {
Layout.fillWidth: true
Layout.fillHeight: true
property HTile tile
Behavior on Layout.maximumHeight { HNumberAnimation {} }
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.NoButton
cursorShape:
parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor
}
}