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