use a scrollArea
This commit is contained in:
parent
a2f6e62e6c
commit
9b4c8ba95d
@ -59,7 +59,7 @@ Item {
|
||||
property variant initialPage
|
||||
//A column is wide enough for 30 characters
|
||||
property int columnWidth: Math.round(parent.width/(theme.defaultFont.mSize.width*30)) > 0 ? parent.width/Math.round(parent.width/(theme.defaultFont.mSize.width*30)) : width
|
||||
clip: true
|
||||
property alias clip: scrollArea.clip
|
||||
|
||||
// Indicates whether there is an ongoing page transition.
|
||||
property bool busy: internal.ongoingTransitionCount > 0
|
||||
@ -194,6 +194,9 @@ Item {
|
||||
}
|
||||
}
|
||||
|
||||
ScrollArea {
|
||||
id: scrollArea
|
||||
anchors.fill: parent
|
||||
Flickable {
|
||||
id: mainFlickable
|
||||
anchors.fill: parent
|
||||
@ -217,9 +220,6 @@ Item {
|
||||
scrollToLevel(Math.round(contentX/columnWidth)+1)
|
||||
}
|
||||
}
|
||||
ScrollBar {
|
||||
flickableItem: mainFlickable
|
||||
orientation: Qt.Horizontal
|
||||
}
|
||||
|
||||
Component {
|
||||
|
Loading…
Reference in New Issue
Block a user