|
|
|
@ -29,42 +29,57 @@ Dialog { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
header: ColumnLayout { |
|
|
|
header: Item { |
|
|
|
spacing: 0 |
|
|
|
implicitWidth: rootLayout.implicitWidth |
|
|
|
|
|
|
|
implicitHeight: rootLayout.implicitHeight |
|
|
|
|
|
|
|
|
|
|
|
RowLayout { |
|
|
|
MouseArea { |
|
|
|
|
|
|
|
anchors.fill: parent |
|
|
|
|
|
|
|
onClicked: { |
|
|
|
|
|
|
|
// hack to allow titlebar click to remove on screen keyboard by |
|
|
|
|
|
|
|
// moving focus to label |
|
|
|
|
|
|
|
titleLabel.forceActiveFocus() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ColumnLayout { |
|
|
|
|
|
|
|
id: rootLayout |
|
|
|
spacing: 0 |
|
|
|
spacing: 0 |
|
|
|
|
|
|
|
|
|
|
|
Image { |
|
|
|
RowLayout { |
|
|
|
visible: iconSource |
|
|
|
spacing: 0 |
|
|
|
source: iconSource |
|
|
|
|
|
|
|
Layout.preferredWidth: constants.iconSizeXLarge |
|
|
|
Image { |
|
|
|
Layout.preferredHeight: constants.iconSizeXLarge |
|
|
|
visible: iconSource |
|
|
|
Layout.leftMargin: constants.paddingMedium |
|
|
|
source: iconSource |
|
|
|
Layout.topMargin: constants.paddingMedium |
|
|
|
Layout.preferredWidth: constants.iconSizeXLarge |
|
|
|
Layout.bottomMargin: constants.paddingMedium |
|
|
|
Layout.preferredHeight: constants.iconSizeXLarge |
|
|
|
|
|
|
|
Layout.leftMargin: constants.paddingMedium |
|
|
|
|
|
|
|
Layout.topMargin: constants.paddingMedium |
|
|
|
|
|
|
|
Layout.bottomMargin: constants.paddingMedium |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
|
|
|
|
id: titleLabel |
|
|
|
|
|
|
|
text: title |
|
|
|
|
|
|
|
elide: Label.ElideRight |
|
|
|
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
|
|
|
leftPadding: constants.paddingXLarge |
|
|
|
|
|
|
|
topPadding: constants.paddingXLarge |
|
|
|
|
|
|
|
bottomPadding: constants.paddingXLarge |
|
|
|
|
|
|
|
rightPadding: constants.paddingXLarge |
|
|
|
|
|
|
|
font.bold: true |
|
|
|
|
|
|
|
font.pixelSize: constants.fontSizeMedium |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
Rectangle { |
|
|
|
text: title |
|
|
|
|
|
|
|
elide: Label.ElideRight |
|
|
|
|
|
|
|
Layout.fillWidth: true |
|
|
|
Layout.fillWidth: true |
|
|
|
leftPadding: constants.paddingXLarge |
|
|
|
Layout.leftMargin: constants.paddingXXSmall |
|
|
|
topPadding: constants.paddingXLarge |
|
|
|
Layout.rightMargin: constants.paddingXXSmall |
|
|
|
bottomPadding: constants.paddingXLarge |
|
|
|
height: 1 |
|
|
|
rightPadding: constants.paddingXLarge |
|
|
|
color: Qt.rgba(0,0,0,0.5) |
|
|
|
font.bold: true |
|
|
|
|
|
|
|
font.pixelSize: constants.fontSizeMedium |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Rectangle { |
|
|
|
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
|
|
|
Layout.leftMargin: constants.paddingXXSmall |
|
|
|
|
|
|
|
Layout.rightMargin: constants.paddingXXSmall |
|
|
|
|
|
|
|
height: 1 |
|
|
|
|
|
|
|
color: Qt.rgba(0,0,0,0.5) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|