Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengtianzuo committed Jan 6, 2018
1 parent f7eddeb commit 3d6ecc5
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions QmlFontList/QmlFontList.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ Window{
signal sClick(string sFontName);

ListView{
id: comb
anchors.fill: parent
id: listView
height: contentHeight
width: parent.width - vbar.width
y: -vbar.position * listView.height
model: Qt.fontFamilies()
delegate: Item {
height: 32
Expand Down Expand Up @@ -66,4 +68,15 @@ Window{
}
}
}
ScrollBar {
id: vbar
hoverEnabled: true
active: hovered || pressed
orientation: Qt.Vertical
size: parent.height / listView.height
width: 10
anchors.top: parent.top
anchors.right: parent.right
anchors.bottom: parent.bottom
}
}

0 comments on commit 3d6ecc5

Please sign in to comment.