2020-03-12 01:45:47 +11:00
|
|
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
|
|
|
|
import QtQuick 2.12
|
2020-03-28 22:18:00 +11:00
|
|
|
import "../ShortcutBundles"
|
2020-03-12 01:45:47 +11:00
|
|
|
|
|
|
|
HPage {
|
2020-06-05 19:42:12 +10:00
|
|
|
id: page
|
|
|
|
|
|
|
|
|
2020-03-12 01:45:47 +11:00
|
|
|
default property alias columnData: column.data
|
2020-06-05 19:42:12 +10:00
|
|
|
property alias column: column
|
|
|
|
property alias flickable: flickable
|
|
|
|
property alias flickShortcuts: flickShortcuts
|
|
|
|
|
|
|
|
|
|
|
|
padding: 0
|
2020-03-12 01:45:47 +11:00
|
|
|
|
|
|
|
|
|
|
|
HFlickable {
|
|
|
|
id: flickable
|
|
|
|
anchors.fill: parent
|
|
|
|
clip: true
|
|
|
|
contentWidth: parent.width
|
|
|
|
contentHeight: column.childrenRect.height
|
|
|
|
|
2020-03-28 22:18:00 +11:00
|
|
|
FlickShortcuts {
|
2020-06-05 19:42:12 +10:00
|
|
|
id: flickShortcuts
|
2020-04-01 23:01:13 +11:00
|
|
|
active: ! mainUI.debugConsole.visible
|
2020-03-28 22:18:00 +11:00
|
|
|
flickable: flickable
|
|
|
|
}
|
|
|
|
|
2020-03-12 01:45:47 +11:00
|
|
|
HColumnLayout {
|
|
|
|
id: column
|
2020-06-05 19:42:12 +10:00
|
|
|
x: padding
|
|
|
|
y: padding
|
|
|
|
width: flickable.width - padding * 2
|
|
|
|
height: flickable.height - padding * 2
|
|
|
|
|
|
|
|
property int padding:
|
|
|
|
page.currentSpacing < theme.spacing ? 0 : page.currentSpacing
|
2020-03-12 01:45:47 +11:00
|
|
|
}
|
|
|
|
}
|
2020-05-19 00:53:26 +10:00
|
|
|
|
2020-05-21 12:03:36 +10:00
|
|
|
HKineticScrollingDisabler {
|
2020-05-19 00:53:26 +10:00
|
|
|
flickable: flickable
|
2020-06-05 15:54:42 +10:00
|
|
|
width: enabled ? flickable.width : 0
|
|
|
|
height: enabled ? flickable.height : 0
|
2020-05-19 00:53:26 +10:00
|
|
|
}
|
2020-03-12 01:45:47 +11:00
|
|
|
}
|