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