moving the presenterView into an item so we can use a gridView
This commit is contained in:
parent
5fb8e867ce
commit
09f5e23612
1 changed files with 127 additions and 130 deletions
|
@ -29,7 +29,7 @@ FocusScope {
|
|||
ColumnLayout {
|
||||
id: mainGrid
|
||||
anchors.fill: parent
|
||||
anchors.bottomMargin: Kirigami.Units.largeSpacing * 21
|
||||
/* anchors.bottomMargin: Kirigami.Units.largeSpacing * 2 */
|
||||
/* columns: 3 */
|
||||
/* rowSpacing: 5 */
|
||||
/* columnSpacing: 0 */
|
||||
|
@ -81,10 +81,14 @@ FocusScope {
|
|||
}
|
||||
|
||||
Item {
|
||||
id: presenterView
|
||||
Layout.fillHeight: true
|
||||
Layout.fillWidth: true
|
||||
/* Layout.columnSpan: 3 */
|
||||
Layout.alignment: Qt.AlignTop
|
||||
|
||||
Item {
|
||||
id: slideArea
|
||||
anchors.fill: parent
|
||||
anchors.bottomMargin: previewSlidesList.height
|
||||
|
||||
Kirigami.Icon {
|
||||
source: "arrow-left"
|
||||
|
@ -92,7 +96,6 @@ FocusScope {
|
|||
implicitHeight: Kirigami.Units.gridUnit * 10
|
||||
anchors.right: previewSlide.left
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
/* Layout.alignment: Qt.AlignRight */
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onPressed: previousSlideAction()
|
||||
|
@ -102,9 +105,8 @@ FocusScope {
|
|||
|
||||
Presenter.Slide {
|
||||
id: previewSlide
|
||||
implicitWidth: root.width - 400
|
||||
implicitWidth: root.width - 400 > 200 ? root.width - 400 : 200
|
||||
implicitHeight: width / 16 * 9
|
||||
/* minimumWidth: 200 */
|
||||
anchors.centerIn: parent
|
||||
textSize: SlideObject.fontSize
|
||||
itemType: SlideObject.type
|
||||
|
@ -123,7 +125,6 @@ FocusScope {
|
|||
implicitHeight: Kirigami.Units.gridUnit * 10
|
||||
anchors.left: previewSlide.right
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
/* Layout.alignment: Qt.AlignLeft */
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onPressed: nextSlideAction()
|
||||
|
@ -168,20 +169,6 @@ FocusScope {
|
|||
Keys.onDownPressed: nextSlideAction()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Item { */
|
||||
/* Layout.fillHeight: true */
|
||||
/* Layout.fillWidth: true */
|
||||
/* Layout.columnSpan: 3 */
|
||||
/* } */
|
||||
|
||||
Item {
|
||||
Layout.preferredHeight: 60
|
||||
Layout.fillWidth: true
|
||||
/* Layout.columnSpan: 3 */
|
||||
Layout.alignment: Qt.AlignTop
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -189,7 +176,7 @@ FocusScope {
|
|||
// The active items X value from root
|
||||
property int activeX
|
||||
id: previewSlidesList
|
||||
anchors.top: mainGrid.bottom
|
||||
anchors.bottom: presenterView.bottom
|
||||
width: parent.width
|
||||
height: Kirigami.Units.gridUnit * 9
|
||||
orientation: ListView.Horizontal
|
||||
|
@ -227,6 +214,16 @@ FocusScope {
|
|||
duration: 150
|
||||
}}
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
id: gridView
|
||||
Layout.fillHeight: true
|
||||
Layout.fillWidth: true
|
||||
Layout.alignment: Qt.AlignTop
|
||||
visible: false
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
id: keyHandler
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue