diff --git a/ui/EventView.qml b/ui/EventView.qml index 4c5e58159b11227b6cb27eb394da0a9467cac196..c4938271154fdd9305f27293e686a67e73ba8acb 100644 --- a/ui/EventView.qml +++ b/ui/EventView.qml @@ -133,27 +133,36 @@ Cras nec ante sit amet augue sodales iaculis. Aliquam erat volutpat. Nam aliquet RowLayout { Layout.fillWidth: true spacing: 6 - visible: root.category.length > 0 + + visible: root.category !== "" + Label { - Layout.alignment: Qt.AlignTop text: qsTr("Category:") font.bold: true + verticalAlignment: Text.AlignTop + Layout.alignment: Qt.AlignTop } Label { - Layout.alignment: Qt.AlignTop Layout.fillWidth: true text: root.category wrapMode: Text.WordWrap + verticalAlignment: Text.AlignTop + Layout.alignment: Qt.AlignTop } } RowLayout { Layout.alignment: Qt.AlignTop Layout.fillWidth: true + + visible: root.locationName !== "" + height: Layout.preferredHeight spacing: 6 Label { text: qsTr("at:") font.bold: true + verticalAlignment: Text.AlignTop + Layout.alignment: Qt.AlignTop } Label { Layout.fillWidth: true @@ -162,6 +171,8 @@ Cras nec ante sit amet augue sodales iaculis. Aliquam erat volutpat. Nam aliquet wrapMode: Text.Wrap focus: false font.underline: true + verticalAlignment: Text.AlignTop + Layout.alignment: Qt.AlignTop } } Label { @@ -210,12 +221,16 @@ Cras nec ante sit amet augue sodales iaculis. Aliquam erat volutpat. Nam aliquet Label { text: qsTr("When:") font.bold: true + verticalAlignment: Text.AlignTop + Layout.alignment: Qt.AlignTop } Label { Layout.fillWidth: true text: root.dateTime wrapMode: TextEdit.Wrap font.underline: true + verticalAlignment: Text.AlignTop + Layout.alignment: Qt.AlignTop } } RowLayout { @@ -227,11 +242,15 @@ Cras nec ante sit amet augue sodales iaculis. Aliquam erat volutpat. Nam aliquet Label { text: qsTr("Duration:") font.bold: true + verticalAlignment: Text.AlignTop + Layout.alignment: Qt.AlignTop } Label { Layout.fillWidth: true text: root.duration wrapMode: TextEdit.Wrap + verticalAlignment: Text.AlignTop + Layout.alignment: Qt.AlignTop } } RowLayout { @@ -241,11 +260,15 @@ Cras nec ante sit amet augue sodales iaculis. Aliquam erat volutpat. Nam aliquet Label { text: qsTr("Price:") font.bold: true + verticalAlignment: Text.AlignTop + Layout.alignment: Qt.AlignTop } Label { text: root.price Layout.fillWidth: true wrapMode: TextEdit.Wrap + verticalAlignment: Text.AlignTop + Layout.alignment: Qt.AlignTop } } RowLayout { @@ -255,6 +278,8 @@ Cras nec ante sit amet augue sodales iaculis. Aliquam erat volutpat. Nam aliquet Label { text: qsTr("Address:") font.bold: true + verticalAlignment: Text.AlignTop + Layout.alignment: Qt.AlignTop } Label { id: address @@ -269,6 +294,8 @@ Cras nec ante sit amet augue sodales iaculis. Aliquam erat volutpat. Nam aliquet cursorShape: Qt.PointingHandCursor } focus: false + verticalAlignment: Text.AlignTop + Layout.alignment: Qt.AlignTop } ToolButton { font.family: "Material Design Icons" @@ -284,16 +311,23 @@ Cras nec ante sit amet augue sodales iaculis. Aliquam erat volutpat. Nam aliquet RowLayout { Layout.fillWidth: true - visible: root.directions.length > 0 + + visible: root.directions !== "" + spacing: 6 Label { text: qsTr("Directions:") font.bold: true + verticalAlignment: Text.AlignTop + Layout.alignment: Qt.AlignTop } Label { - Layout.alignment: Qt.AlignTop Layout.fillWidth: true + + verticalAlignment: Text.AlignTop + Layout.alignment: Qt.AlignTop + text: root.directions wrapMode: TextEdit.Wrap focus: false