1// SPDX-FileCopyrightText: 2021 Nheko Contributors 2// 3// SPDX-License-Identifier: GPL-3.0-or-later 4 5import "../ui" 6import QtQuick 2.3 7import QtQuick.Controls 2.3 8import QtQuick.Layouts 1.10 9import im.nheko 1.0 10 11Pane { 12 property string title: qsTr("Waiting for other party…") 13 14 ColumnLayout { 15 spacing: 16 16 17 Label { 18 id: content 19 20 Layout.maximumWidth: 400 21 Layout.fillHeight: true 22 Layout.fillWidth: true 23 wrapMode: Text.Wrap 24 text: { 25 switch (flow.state) { 26 case "WaitingForOtherToAccept": 27 return qsTr("Waiting for other side to accept the verification request."); 28 case "WaitingForKeys": 29 return qsTr("Waiting for other side to continue the verification process."); 30 case "WaitingForMac": 31 return qsTr("Waiting for other side to complete the verification process."); 32 } 33 } 34 color: Nheko.colors.text 35 verticalAlignment: Text.AlignVCenter 36 } 37 38 Spinner { 39 Layout.alignment: Qt.AlignHCenter 40 foreground: Nheko.colors.mid 41 } 42 43 RowLayout { 44 Button { 45 Layout.alignment: Qt.AlignLeft 46 text: qsTr("Cancel") 47 onClicked: { 48 flow.cancel(); 49 dialog.close(); 50 } 51 } 52 53 Item { 54 Layout.fillWidth: true 55 } 56 57 } 58 59 } 60 61} 62