Fixing object edition dialog height
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
9f20a80228
commit
bf067b7e7c
1 changed files with 11 additions and 12 deletions
|
@ -58,7 +58,8 @@ Popup.BaseDialog {
|
||||||
|
|
||||||
title: "LogarithmPlotter"
|
title: "LogarithmPlotter"
|
||||||
width: 350
|
width: 350
|
||||||
minimumHeight: 400
|
minimumHeight: Math.max(450,dlgProperties.height + margin*4 + 30)
|
||||||
|
maximumHeight: minimumHeight
|
||||||
|
|
||||||
// Disable closing on return/enter, causing issues with autocomplete.
|
// Disable closing on return/enter, causing issues with autocomplete.
|
||||||
// onActionChosen: if(action.key == Qt.Key_Enter || action.key == Qt.Key_Return) action.accepted = false
|
// onActionChosen: if(action.key == Qt.Key_Enter || action.key == Qt.Key_Return) action.accepted = false
|
||||||
|
@ -70,25 +71,23 @@ Popup.BaseDialog {
|
||||||
right: parent.right;
|
right: parent.right;
|
||||||
topMargin: margin;
|
topMargin: margin;
|
||||||
leftMargin: margin;
|
leftMargin: margin;
|
||||||
bottomMargin: margin;
|
bottomMargin: margin + 30;
|
||||||
rightMargin: margin;
|
rightMargin: margin;
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
|
||||||
id: dlgTitle
|
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.top: parent.top
|
|
||||||
verticalAlignment: TextInput.AlignVCenter
|
|
||||||
text: qsTr("Edit properties of %1 %2").arg(Objects.types[objEditor.objType].displayType()).arg(objEditor.obj.name)
|
|
||||||
font.pixelSize: 20
|
|
||||||
color: sysPalette.windowText
|
|
||||||
}
|
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: dlgProperties
|
id: dlgProperties
|
||||||
anchors.top: dlgTitle.bottom
|
anchors.top: dlgTitle.bottom
|
||||||
width: objEditor.width - 20
|
width: objEditor.width - 20
|
||||||
spacing: 10
|
spacing: 10
|
||||||
|
|
||||||
|
Label {
|
||||||
|
id: dlgTitle
|
||||||
|
verticalAlignment: TextInput.AlignVCenter
|
||||||
|
text: qsTr("Edit properties of %1 %2").arg(Objects.types[objEditor.objType].displayType()).arg(objEditor.obj.name)
|
||||||
|
font.pixelSize: 20
|
||||||
|
color: sysPalette.windowText
|
||||||
|
}
|
||||||
|
|
||||||
Native.MessageDialog {
|
Native.MessageDialog {
|
||||||
id: invalidNameDialog
|
id: invalidNameDialog
|
||||||
|
|
Loading…
Reference in a new issue