We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7eddeb commit 3d6ecc5Copy full SHA for 3d6ecc5
QmlFontList/QmlFontList.qml
@@ -17,8 +17,10 @@ Window{
17
signal sClick(string sFontName);
18
19
ListView{
20
- id: comb
21
- anchors.fill: parent
+ id: listView
+ height: contentHeight
22
+ width: parent.width - vbar.width
23
+ y: -vbar.position * listView.height
24
model: Qt.fontFamilies()
25
delegate: Item {
26
height: 32
@@ -66,4 +68,15 @@ Window{
66
68
}
67
69
70
71
+ ScrollBar {
72
+ id: vbar
73
+ hoverEnabled: true
74
+ active: hovered || pressed
75
+ orientation: Qt.Vertical
76
+ size: parent.height / listView.height
77
+ width: 10
78
+ anchors.top: parent.top
79
+ anchors.right: parent.right
80
+ anchors.bottom: parent.bottom
81
+ }
82
0 commit comments