Changeset View
Changeset View
Standalone View
Standalone View
widgets/InfoView/InfoView.qml
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | 46 | { | |||
---|---|---|---|---|---|
49 | contentWidth: lyricsText.width | 49 | contentWidth: lyricsText.width | ||
50 | contentHeight: lyricsText.height | 50 | contentHeight: lyricsText.height | ||
51 | 51 | | |||
52 | ScrollBar.horizontal.policy: ScrollBar.AlwaysOff | 52 | ScrollBar.horizontal.policy: ScrollBar.AlwaysOff | ||
53 | 53 | | |||
54 | TextEdit | 54 | TextEdit | ||
55 | { | 55 | { | ||
56 | id: lyricsText | 56 | id: lyricsText | ||
57 | text: currentTrack.lyrics | 57 | text: currentTrack.lyrics || "" | ||
58 | width: infoRoot.width // ensure correct width | 58 | width: infoRoot.width // ensure correct width | ||
59 | height: implicitHeight | 59 | height: implicitHeight | ||
60 | readOnly: true | 60 | readOnly: true | ||
61 | padding: 20 | 61 | padding: 20 | ||
62 | color: darkTextColor | 62 | color: darkTextColor | ||
63 | font.pointSize: fontSizes.big | 63 | font.pointSize: fontSizes.big | ||
64 | horizontalAlignment: Qt.AlignHCenter | 64 | horizontalAlignment: Qt.AlignHCenter | ||
65 | verticalAlignment: Qt.AlignVCenter | 65 | verticalAlignment: Qt.AlignVCenter | ||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |