mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-24 15:37:23 +00:00
fix warnings
This commit is contained in:
parent
91abbdcd96
commit
1e0316c4de
@ -35,7 +35,7 @@ QString AWDebug::getAboutText(const QString &_type)
|
|||||||
if (_type == "header") {
|
if (_type == "header") {
|
||||||
text = NAME;
|
text = NAME;
|
||||||
} else if (_type == "version") {
|
} else if (_type == "version") {
|
||||||
text = i18np("Version %1 (build date %2)", VERSION, BUILD_DATE);
|
text = i18n("Version %1 (build date %2)", VERSION, BUILD_DATE);
|
||||||
if (!QString(COMMIT_SHA).isEmpty())
|
if (!QString(COMMIT_SHA).isEmpty())
|
||||||
text += QString(" (%1)").arg(COMMIT_SHA);
|
text += QString(" (%1)").arg(COMMIT_SHA);
|
||||||
} else if (_type == "description") {
|
} else if (_type == "description") {
|
||||||
|
@ -30,6 +30,8 @@ Item {
|
|||||||
width: childrenRect.width
|
width: childrenRect.width
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
|
|
||||||
|
property bool debug: awActions.isDebugEnabled()
|
||||||
|
|
||||||
AboutTab {
|
AboutTab {
|
||||||
textProvider: awActions
|
textProvider: awActions
|
||||||
}
|
}
|
||||||
|
@ -30,6 +30,8 @@ Item {
|
|||||||
width: childrenRect.width
|
width: childrenRect.width
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
|
|
||||||
|
property bool debug: awActions.isDebugEnabled()
|
||||||
|
|
||||||
AboutTab {
|
AboutTab {
|
||||||
textProvider: dpAdds
|
textProvider: dpAdds
|
||||||
}
|
}
|
||||||
|
@ -45,17 +45,14 @@ QtDialogs.Dialog {
|
|||||||
|
|
||||||
QtControls.TextField {
|
QtControls.TextField {
|
||||||
id: title
|
id: title
|
||||||
anchors.left: parent.left
|
QtLayouts.Layout.fillWidth: true
|
||||||
anchors.right: parent.right
|
|
||||||
placeholderText: i18n("Report subject")
|
placeholderText: i18n("Report subject")
|
||||||
}
|
}
|
||||||
QtLayouts.ColumnLayout {
|
QtLayouts.ColumnLayout {
|
||||||
anchors.left: parent.left
|
QtLayouts.Layout.fillWidth: true
|
||||||
anchors.right: parent.right
|
|
||||||
|
|
||||||
QtControls.GroupBox {
|
QtControls.GroupBox {
|
||||||
anchors.left: parent.left
|
QtLayouts.Layout.fillWidth: true
|
||||||
anchors.right: parent.right
|
|
||||||
height: parent.height / 5
|
height: parent.height / 5
|
||||||
title: i18n("Description")
|
title: i18n("Description")
|
||||||
QtControls.TextArea {
|
QtControls.TextArea {
|
||||||
@ -65,8 +62,7 @@ QtDialogs.Dialog {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
QtControls.GroupBox {
|
QtControls.GroupBox {
|
||||||
anchors.left: parent.left
|
QtLayouts.Layout.fillWidth: true
|
||||||
anchors.right: parent.right
|
|
||||||
height: parent.height / 5
|
height: parent.height / 5
|
||||||
title: i18n("Steps to reproduce")
|
title: i18n("Steps to reproduce")
|
||||||
QtControls.TextArea {
|
QtControls.TextArea {
|
||||||
@ -76,8 +72,7 @@ QtDialogs.Dialog {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
QtControls.GroupBox {
|
QtControls.GroupBox {
|
||||||
anchors.left: parent.left
|
QtLayouts.Layout.fillWidth: true
|
||||||
anchors.right: parent.right
|
|
||||||
height: parent.height / 5
|
height: parent.height / 5
|
||||||
title: i18n("Expected result")
|
title: i18n("Expected result")
|
||||||
QtControls.TextArea {
|
QtControls.TextArea {
|
||||||
@ -87,15 +82,14 @@ QtDialogs.Dialog {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
QtControls.GroupBox {
|
QtControls.GroupBox {
|
||||||
anchors.left: parent.left
|
QtLayouts.Layout.fillWidth: true
|
||||||
anchors.right: parent.right
|
QtLayouts.Layout.alignment: Qt.AlignBottom
|
||||||
anchors.bottom: parent.bottom
|
|
||||||
title: i18n("Logs")
|
title: i18n("Logs")
|
||||||
QtLayouts.ColumnLayout {
|
QtLayouts.ColumnLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
QtLayouts.Layout.fillWidth: true
|
||||||
Row {
|
Row {
|
||||||
anchors.left: parent.left
|
QtLayouts.Layout.fillWidth: true
|
||||||
anchors.right: parent.right
|
|
||||||
QtControls.Label {
|
QtControls.Label {
|
||||||
width: parent.width * 2 / 5
|
width: parent.width * 2 / 5
|
||||||
horizontalAlignment: Text.AlignJustify
|
horizontalAlignment: Text.AlignJustify
|
||||||
@ -110,16 +104,14 @@ QtDialogs.Dialog {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
QtControls.Button {
|
QtControls.Button {
|
||||||
anchors.left: parent.left
|
QtLayouts.Layout.fillWidth: true
|
||||||
anchors.right: parent.right
|
|
||||||
text: i18n("Load log file")
|
text: i18n("Load log file")
|
||||||
onClicked: logPath.open()
|
onClicked: logPath.open()
|
||||||
}
|
}
|
||||||
QtControls.TextArea {
|
QtControls.TextArea {
|
||||||
id: logBody
|
id: logBody
|
||||||
anchors.left: parent.left
|
QtLayouts.Layout.fillWidth: true
|
||||||
anchors.right: parent.right
|
QtLayouts.Layout.alignment: Qt.AlignBottom
|
||||||
anchors.bottom: parent.bottom
|
|
||||||
textFormat: TextEdit.PlainText
|
textFormat: TextEdit.PlainText
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user