makeing PresentationEditor layout make more sense
This commit is contained in:
parent
175182a32b
commit
8c3ebedf18
1 changed files with 46 additions and 86 deletions
|
@ -25,19 +25,16 @@ Item {
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
Controls.ComboBox {
|
|
||||||
model: Qt.fontFamilies()
|
Controls.TextField {
|
||||||
implicitWidth: 300
|
id: presentationTitleField
|
||||||
editable: true
|
Layout.preferredWidth: 300
|
||||||
hoverEnabled: true
|
placeholderText: "Title..."
|
||||||
/* onCurrentTextChanged: showPassiveNotification(currentText) */
|
text: presentation.title
|
||||||
}
|
padding: 10
|
||||||
Controls.SpinBox {
|
onEditingFinished: updateTitle(text);
|
||||||
editable: true
|
|
||||||
from: 5
|
|
||||||
to: 72
|
|
||||||
hoverEnabled: true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Controls.ComboBox {
|
Controls.ComboBox {
|
||||||
model: ["PRESENTATIONS", "Center", "Right", "Justify"]
|
model: ["PRESENTATIONS", "Center", "Right", "Justify"]
|
||||||
implicitWidth: 100
|
implicitWidth: 100
|
||||||
|
@ -96,58 +93,22 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Controls.SplitView {
|
ColumnLayout {
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
/* Layout.minimumWidth: 300 */
|
||||||
|
Layout.alignment: Qt.AlignCenter
|
||||||
Layout.columnSpan: 2
|
Layout.columnSpan: 2
|
||||||
handle: Item{
|
|
||||||
implicitWidth: 6
|
|
||||||
Rectangle {
|
|
||||||
height: parent.height
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
|
||||||
width: 1
|
|
||||||
color: Controls.SplitHandle.hovered ? Kirigami.Theme.hoverColor : Kirigami.Theme.backgroundColor
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
Controls.SplitView.fillHeight: true
|
|
||||||
Controls.SplitView.preferredWidth: 300
|
|
||||||
Controls.SplitView.minimumWidth: 100
|
|
||||||
|
|
||||||
Controls.TextField {
|
|
||||||
id: presentationTitleField
|
|
||||||
|
|
||||||
Layout.preferredWidth: 300
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.leftMargin: 20
|
|
||||||
Layout.rightMargin: 20
|
|
||||||
|
|
||||||
placeholderText: "Title..."
|
|
||||||
text: presentation.title
|
|
||||||
padding: 10
|
|
||||||
onEditingFinished: updateTitle(text);
|
|
||||||
}
|
|
||||||
|
|
||||||
Item {
|
|
||||||
id: empty
|
|
||||||
Layout.fillHeight: true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
ColumnLayout {
|
|
||||||
Controls.SplitView.fillHeight: true
|
|
||||||
Controls.SplitView.preferredWidth: 700
|
|
||||||
Controls.SplitView.minimumWidth: 300
|
|
||||||
spacing: 5
|
spacing: 5
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: topEmpty
|
id: topEmpty
|
||||||
Layout.fillHeight: true
|
Layout.preferredHeight: 30
|
||||||
}
|
}
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
id: presentationPreview
|
id: presentationPreview
|
||||||
Layout.preferredWidth: 600
|
Layout.preferredWidth: 1000
|
||||||
Layout.preferredHeight: Layout.preferredWidth / 16 * 9
|
Layout.preferredHeight: Layout.preferredWidth / 16 * 9
|
||||||
Layout.alignment: Qt.AlignCenter
|
Layout.alignment: Qt.AlignCenter
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
|
@ -181,7 +142,6 @@ Item {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
function changePresentation(presentation) {
|
function changePresentation(presentation) {
|
||||||
root.presentation = presentation;
|
root.presentation = presentation;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue