fix login form layout
This commit is contained in:
parent
154a322dd3
commit
c643be5d21
3 changed files with 59 additions and 47 deletions
|
|
@ -3,8 +3,16 @@ import QtQuick.Layouts 1.0
|
|||
import QtQuick.Controls as Control
|
||||
import Linphone
|
||||
|
||||
RowLayout {
|
||||
ColumnLayout {
|
||||
id: root
|
||||
Layout.alignment: Qt.AlignBottom
|
||||
signal useSIPButtonClicked()
|
||||
RowLayout {
|
||||
ColumnLayout {
|
||||
Layout.fillHeight: true
|
||||
Layout.fillWidth: true
|
||||
clip: true
|
||||
|
||||
ColumnLayout {
|
||||
TextInput {
|
||||
id: username
|
||||
|
|
@ -37,6 +45,7 @@ RowLayout {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
Button {
|
||||
Layout.topMargin: 40
|
||||
inversedColors: true
|
||||
|
|
@ -44,6 +53,7 @@ RowLayout {
|
|||
onClicked: {root.useSIPButtonClicked()}
|
||||
}
|
||||
}
|
||||
}
|
||||
Item {
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
|
@ -54,3 +64,7 @@ RowLayout {
|
|||
source: AppIcons.loginImage
|
||||
}
|
||||
}
|
||||
Item {
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
}
|
||||
|
|
@ -35,6 +35,8 @@ LoginLayout {
|
|||
}
|
||||
}
|
||||
|
||||
centerContent: LoginForm {}
|
||||
centerContent: LoginForm {
|
||||
onUseSIPButtonClicked: root.useSIPButtonClicked()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -63,8 +63,6 @@ LoginLayout {
|
|||
Component {
|
||||
id: firstItem
|
||||
ColumnLayout {
|
||||
// Layout.fillWidth: true
|
||||
// Layout.fillHeight: true
|
||||
|
||||
Text {
|
||||
Layout.preferredWidth: 361
|
||||
|
|
@ -111,8 +109,6 @@ LoginLayout {
|
|||
Component {
|
||||
id: secondItem
|
||||
ColumnLayout {
|
||||
// Layout.fillWidth: true
|
||||
// Layout.fillHeight: true
|
||||
TextInput {
|
||||
id: username
|
||||
label: "Username"
|
||||
|
|
|
|||
Loading…
Reference in a new issue