Skip to content

Commit 3d6ecc5

Browse files
committed
update
1 parent f7eddeb commit 3d6ecc5

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

QmlFontList/QmlFontList.qml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ Window{
1717
signal sClick(string sFontName);
1818

1919
ListView{
20-
id: comb
21-
anchors.fill: parent
20+
id: listView
21+
height: contentHeight
22+
width: parent.width - vbar.width
23+
y: -vbar.position * listView.height
2224
model: Qt.fontFamilies()
2325
delegate: Item {
2426
height: 32
@@ -66,4 +68,15 @@ Window{
6668
}
6769
}
6870
}
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+
}
6982
}

0 commit comments

Comments
 (0)