linux.x86.linphone/Linphone/view/Page/Login/LoginPage.qml
Gaelle Braud 94c2617dfe fixes
2023-10-31 09:30:21 +01:00

45 lines
861 B
QML

import QtQuick 2.15
import QtQuick.Layouts 1.0
import QtQuick.Controls as Control
import Linphone
LoginLayout {
id: mainItem
signal useSIPButtonClicked()
signal goToRegister()
titleContent: RowLayout {
Image {
fillMode: Image.PreserveAspectFit
source: AppIcons.profile
}
Text {
text: "Login"
font.pointSize: DefaultStyle.title2FontPointSize
font.bold: true
scaleLettersFactor: 1.1
}
Item {
Layout.fillWidth: true
}
Text {
Layout.rightMargin: 15
text: "No account yet ?"
font.pointSize: DefaultStyle.defaultTextSize
}
Button {
Layout.alignment: Qt.AlignRight
inversedColors: true
text: "Register"
onClicked: {
console.debug("[LoginPage] User: go to register")
mainItem.goToRegister()
}
}
}
centerContent: LoginForm {
onUseSIPButtonClicked: mainItem.useSIPButtonClicked()
}
}