Using StackView for the main area to swap between edit and present
This commit is contained in:
parent
9993542d57
commit
3e646d8728
5 changed files with 44 additions and 21 deletions
|
@ -22,6 +22,8 @@ Controls.Page {
|
|||
|
||||
property string dragSongTitle: ""
|
||||
|
||||
property bool editing: true
|
||||
|
||||
property Item slideItem
|
||||
property var song
|
||||
property var draggedLibraryItem
|
||||
|
@ -56,22 +58,16 @@ Controls.Page {
|
|||
Controls.SplitView.maximumWidth: 300
|
||||
}
|
||||
|
||||
Presenter.SongEditor {
|
||||
id: songEditor
|
||||
Controls.StackView {
|
||||
id: mainPageArea
|
||||
Controls.SplitView.fillHeight: true
|
||||
Controls.SplitView.fillWidth: true
|
||||
Controls.SplitView.preferredWidth: 700
|
||||
Controls.SplitView.minimumWidth: 500
|
||||
initialItem: presenterComp
|
||||
|
||||
}
|
||||
|
||||
/* Presenter.Presentation { */
|
||||
/* id: presentation */
|
||||
/* Controls.SplitView.fillHeight: true */
|
||||
/* Controls.SplitView.fillWidth: true */
|
||||
/* Controls.SplitView.preferredWidth: 700 */
|
||||
/* Controls.SplitView.minimumWidth: 500 */
|
||||
/* } */
|
||||
|
||||
Presenter.Library {
|
||||
id: library
|
||||
Controls.SplitView.fillHeight: true
|
||||
|
@ -82,6 +78,21 @@ Controls.Page {
|
|||
}
|
||||
}
|
||||
|
||||
Component {
|
||||
id: songEditorComp
|
||||
Presenter.SongEditor {
|
||||
id: songEditor
|
||||
}
|
||||
}
|
||||
|
||||
Component {
|
||||
id: presenterComp
|
||||
Presenter.Presentation {
|
||||
id: presentation
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loader {
|
||||
id: presentLoader
|
||||
active: presenting
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue