GUI Object
This commit is contained in:
55
Gui/ObjectAddOnEmployee.qml
Normal file
55
Gui/ObjectAddOnEmployee.qml
Normal file
@@ -0,0 +1,55 @@
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import QtQuick.Controls
|
||||
|
||||
GridLayout
|
||||
{
|
||||
id: oaoemployee
|
||||
columns: 2
|
||||
rows: 4
|
||||
Label
|
||||
{
|
||||
text: qsTr("Mitarbeiter")
|
||||
}
|
||||
ScrollView
|
||||
{
|
||||
Layout.rowSpan: 3
|
||||
Layout.fillWidth: true
|
||||
|
||||
TextArea
|
||||
{
|
||||
id: mitarbeitertext
|
||||
implicitWidth: parent.width
|
||||
implicitHeight: 100
|
||||
wrapMode: TextEdit.Wrap
|
||||
background: Rectangle
|
||||
{
|
||||
color: mitarbeiterhin.palette.base
|
||||
border.color: mitarbeiterhin.activeFocus? mitarbeiterhin.palette.highlight: mitarbeiterhin.palette.base
|
||||
}
|
||||
}
|
||||
}
|
||||
Button
|
||||
{
|
||||
id: mitarbeiterhin
|
||||
property var neuermitarbeiter: undefined
|
||||
text: qsTr("Mitarbeiter hinzufügen")
|
||||
Layout.columnSpan: 2
|
||||
Layout.fillWidth: true
|
||||
Layout.alignment: Qt.AlignRight
|
||||
Layout.maximumWidth: mitarbeitertext.width
|
||||
onClicked:
|
||||
{
|
||||
var nm = Qt.createComponent("AddObjectEmployee.qml")
|
||||
if (nm.status === Component.Ready)
|
||||
{
|
||||
neuermitarbeiter = nm.createObject (appWindow, {width: 600, height: 400})
|
||||
neuermitarbeiter.show()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user