mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-26 17:53:57 +02:00
test: add wizardview key navigation test
Gitlab: #470 Change-Id: I598cab490149739858958e89cc40cabb5820714a
This commit is contained in:
parent
576da3e087
commit
c2be09f55a
10 changed files with 1150 additions and 7 deletions
|
@ -68,6 +68,8 @@ Item {
|
|||
JamiFileDialog {
|
||||
id: importFromFileDialog
|
||||
|
||||
objectName: "photoboothImportFromFileDialog"
|
||||
|
||||
mode: JamiFileDialog.OpenFile
|
||||
title: JamiStrings.chooseAvatarImage
|
||||
folder: StandardPaths.writableLocation(StandardPaths.PicturesLocation)
|
||||
|
@ -181,6 +183,8 @@ Item {
|
|||
PushButton {
|
||||
id: takePhotoButton
|
||||
|
||||
objectName: "takePhotoButton"
|
||||
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
|
||||
radius: JamiTheme.primaryRadius
|
||||
|
@ -223,6 +227,8 @@ Item {
|
|||
PushButton {
|
||||
id: clearButton
|
||||
|
||||
objectName: "photoboothViewClearButton"
|
||||
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
|
||||
visible: LRCInstance.currentAccountAvatarSet
|
||||
|
@ -253,6 +259,8 @@ Item {
|
|||
PushButton {
|
||||
id: importButton
|
||||
|
||||
objectName: "photoboothViewImportButton"
|
||||
|
||||
property bool focusAfterFileDialogClosed: false
|
||||
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
|
|
|
@ -162,7 +162,9 @@ Rectangle {
|
|||
}
|
||||
|
||||
JamiSwitch {
|
||||
id: passwordSwitch
|
||||
id: neverShowMeAgainSwitch
|
||||
|
||||
objectName: "neverShowMeAgainSwitch"
|
||||
|
||||
Layout.alignment: Qt.AlignRight
|
||||
|
||||
|
@ -179,6 +181,8 @@ Rectangle {
|
|||
MaterialButton {
|
||||
id: backupBtn
|
||||
|
||||
objectName: "backupKeyPageBackupBtn"
|
||||
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
Layout.preferredWidth: preferredWidth
|
||||
Layout.preferredHeight: preferredHeight
|
||||
|
@ -189,7 +193,7 @@ Rectangle {
|
|||
pressedColor: JamiTheme.buttonTintedGreyPressed
|
||||
|
||||
KeyNavigation.tab: skipBackupBtn
|
||||
KeyNavigation.up: passwordSwitch
|
||||
KeyNavigation.up: neverShowMeAgainSwitch
|
||||
KeyNavigation.down: KeyNavigation.tab
|
||||
|
||||
onClicked: exportDialog.open()
|
||||
|
@ -198,6 +202,8 @@ Rectangle {
|
|||
MaterialButton {
|
||||
id: skipBackupBtn
|
||||
|
||||
objectName: "backupKeyPageSkipBackupBtn"
|
||||
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
Layout.bottomMargin: JamiTheme.wizardViewPageBackButtonMargins
|
||||
Layout.preferredWidth: preferredWidth
|
||||
|
@ -209,7 +215,7 @@ Rectangle {
|
|||
pressedColor: JamiTheme.buttonTintedGreyPressed
|
||||
outlined: true
|
||||
|
||||
KeyNavigation.tab: passwordSwitch
|
||||
KeyNavigation.tab: neverShowMeAgainSwitch
|
||||
KeyNavigation.up: backupBtn
|
||||
KeyNavigation.down: KeyNavigation.tab
|
||||
|
||||
|
|
|
@ -95,6 +95,8 @@ Rectangle {
|
|||
MaterialLineEdit {
|
||||
id: accountManagerEdit
|
||||
|
||||
objectName: "accountManagerEdit"
|
||||
|
||||
Layout.preferredHeight: fieldLayoutHeight
|
||||
Layout.preferredWidth: connectBtn.width
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
|
@ -136,6 +138,8 @@ Rectangle {
|
|||
MaterialLineEdit {
|
||||
id: usernameManagerEdit
|
||||
|
||||
objectName: "usernameManagerEdit"
|
||||
|
||||
Layout.preferredHeight: fieldLayoutHeight
|
||||
Layout.preferredWidth: connectBtn.width
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
|
@ -157,6 +161,8 @@ Rectangle {
|
|||
MaterialLineEdit {
|
||||
id: passwordManagerEdit
|
||||
|
||||
objectName: "passwordManagerEdit"
|
||||
|
||||
Layout.preferredHeight: fieldLayoutHeight
|
||||
Layout.preferredWidth: connectBtn.width
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
|
@ -185,6 +191,8 @@ Rectangle {
|
|||
SpinnerButton {
|
||||
id: connectBtn
|
||||
|
||||
objectName: "connectToAccountManagerPageConnectBtn"
|
||||
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
Layout.bottomMargin: errorLabel.visible ? 0 : JamiTheme.wizardViewPageBackButtonMargins
|
||||
Layout.preferredWidth: preferredWidth
|
||||
|
|
|
@ -166,6 +166,8 @@ Rectangle {
|
|||
MaterialButton {
|
||||
id: chooseUsernameButton
|
||||
|
||||
objectName: "chooseUsernameButton"
|
||||
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
Layout.preferredWidth: preferredWidth
|
||||
Layout.preferredHeight: preferredHeight
|
||||
|
@ -189,6 +191,8 @@ Rectangle {
|
|||
MaterialButton {
|
||||
id: skipButton
|
||||
|
||||
objectName: "nameRegistrationPageSkipButton"
|
||||
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
Layout.preferredWidth: preferredWidth
|
||||
Layout.preferredHeight: preferredHeight
|
||||
|
@ -392,6 +396,8 @@ Rectangle {
|
|||
BackButton {
|
||||
id: backButton
|
||||
|
||||
objectName: "createAccountPageBackButton"
|
||||
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
anchors.margins: JamiTheme.wizardViewPageBackButtonMargins
|
||||
|
|
|
@ -165,7 +165,7 @@ Rectangle {
|
|||
MaterialButton {
|
||||
id: createAccountButton
|
||||
|
||||
objectName: "createAccountButton"
|
||||
objectName: "createSIPAccountButton"
|
||||
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
Layout.bottomMargin: JamiTheme.wizardViewPageBackButtonMargins
|
||||
|
@ -196,6 +196,8 @@ Rectangle {
|
|||
BackButton {
|
||||
id: backButton
|
||||
|
||||
objectName: "createSIPAccountPageBackButton"
|
||||
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
anchors.margins: 20
|
||||
|
|
|
@ -116,6 +116,8 @@ Rectangle {
|
|||
MaterialButton {
|
||||
id: fileImportBtn
|
||||
|
||||
objectName: "fileImportBtn"
|
||||
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
Layout.preferredWidth: preferredWidth
|
||||
Layout.preferredHeight: preferredHeight
|
||||
|
@ -198,7 +200,7 @@ Rectangle {
|
|||
SpinnerButton {
|
||||
id: connectBtn
|
||||
|
||||
objectName: "connectBtn"
|
||||
objectName: "importFromBackupPageConnectBtn"
|
||||
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
Layout.bottomMargin: errorLabel.visible ? 0 : JamiTheme.wizardViewPageBackButtonMargins
|
||||
|
|
|
@ -83,6 +83,8 @@ Rectangle {
|
|||
MaterialLineEdit {
|
||||
id: passwordFromDevice
|
||||
|
||||
objectName: "passwordFromDevice"
|
||||
|
||||
Layout.preferredHeight: fieldLayoutHeight
|
||||
Layout.preferredWidth: connectBtn.width
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
|
@ -128,6 +130,8 @@ Rectangle {
|
|||
MaterialLineEdit {
|
||||
id: pinFromDevice
|
||||
|
||||
objectName: "pinFromDevice"
|
||||
|
||||
Layout.preferredHeight: fieldLayoutHeight
|
||||
Layout.preferredWidth: connectBtn.width
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
|
@ -157,6 +161,8 @@ Rectangle {
|
|||
SpinnerButton {
|
||||
id: connectBtn
|
||||
|
||||
objectName: "importFromDevicePageConnectBtn"
|
||||
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
Layout.bottomMargin: errorLabel.visible ? 0 : JamiTheme.wizardViewPageBackButtonMargins
|
||||
Layout.preferredWidth: preferredWidth
|
||||
|
|
|
@ -99,6 +99,8 @@ Rectangle {
|
|||
PhotoboothView {
|
||||
id: setAvatarWidget
|
||||
|
||||
objectName: "setAvatarWidget"
|
||||
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
|
||||
imageId: createdAccountId
|
||||
|
|
|
@ -96,6 +96,8 @@ Rectangle {
|
|||
MaterialButton {
|
||||
id: newAccountButton
|
||||
|
||||
objectName: "newAccountButton"
|
||||
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
Layout.preferredWidth: preferredWidth
|
||||
Layout.preferredHeight: preferredHeight
|
||||
|
@ -122,6 +124,8 @@ Rectangle {
|
|||
MaterialButton {
|
||||
id: newRdvButton
|
||||
|
||||
objectName: "newRdvButton"
|
||||
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
Layout.preferredWidth: preferredWidth
|
||||
Layout.preferredHeight: preferredHeight
|
||||
|
@ -145,6 +149,8 @@ Rectangle {
|
|||
MaterialButton {
|
||||
id: fromDeviceButton
|
||||
|
||||
objectName: "fromDeviceButton"
|
||||
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
Layout.preferredWidth: preferredWidth
|
||||
Layout.preferredHeight: preferredHeight
|
||||
|
@ -168,6 +174,8 @@ Rectangle {
|
|||
MaterialButton {
|
||||
id: fromBackupButton
|
||||
|
||||
objectName: "fromBackupButton"
|
||||
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
Layout.preferredWidth: preferredWidth
|
||||
Layout.preferredHeight: preferredHeight
|
||||
|
@ -191,6 +199,8 @@ Rectangle {
|
|||
MaterialButton {
|
||||
id: showAdvancedButton
|
||||
|
||||
objectName: "showAdvancedButton"
|
||||
|
||||
property bool showAdvanced: false
|
||||
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
|
@ -225,6 +235,8 @@ Rectangle {
|
|||
MaterialButton {
|
||||
id: connectAccountManagerButton
|
||||
|
||||
objectName: "connectAccountManagerButton"
|
||||
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
Layout.preferredWidth: preferredWidth
|
||||
Layout.preferredHeight: preferredHeight
|
||||
|
@ -250,6 +262,8 @@ Rectangle {
|
|||
MaterialButton {
|
||||
id: newSIPAccountButton
|
||||
|
||||
objectName: "newSIPAccountButton"
|
||||
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
Layout.bottomMargin: JamiTheme.wizardViewPageBackButtonMargins
|
||||
Layout.preferredWidth: preferredWidth
|
||||
|
@ -279,6 +293,8 @@ Rectangle {
|
|||
BackButton {
|
||||
id: backButton
|
||||
|
||||
objectName: "welcomePageBackButton"
|
||||
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
anchors.margins: JamiTheme.wizardViewPageBackButtonMargins
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue