Warning, /network/neochat/src/qml/EmojiSas.qml is written in an unsupported language. File is not indexed.

0001 // SPDX-FileCopyrightText: 2022 Tobias Fella <tobias.fella@kde.org>
0002 // SPDX-License-Identifier: GPL-2.0-or-later
0003 
0004 import QtQuick
0005 import QtQuick.Controls as QQC2
0006 import QtQml
0007 
0008 import com.github.quotient_im.libquotient
0009 
0010 import org.kde.kirigami as Kirigami
0011 import org.kde.neochat
0012 
0013 Column {
0014     id: root
0015 
0016     required property var model
0017 
0018     signal accept
0019     signal reject
0020 
0021     visible: dialog.session.state === KeyVerificationSession.WAITINGFORVERIFICATION
0022     anchors.centerIn: parent
0023     spacing: Kirigami.Units.largeSpacing
0024     QQC2.Label {
0025         text: i18n("Confirm the emoji below are displayed on both devices, in the same order.")
0026     }
0027     EmojiRow {
0028         anchors.horizontalCenter: parent.horizontalCenter
0029         height: Kirigami.Units.gridUnit * 4
0030         model: root.model.slice(0, 4)
0031     }
0032     EmojiRow {
0033         anchors.horizontalCenter: parent.horizontalCenter
0034         height: Kirigami.Units.gridUnit * 4
0035         model: root.model.slice(4, 7)
0036     }
0037     Row {
0038         anchors.horizontalCenter: parent.horizontalCenter
0039         QQC2.Button {
0040             anchors.bottom: parent.bottom
0041             text: i18n("They match")
0042             icon.name: "dialog-ok"
0043             onClicked: root.accept()
0044         }
0045         QQC2.Button {
0046             anchors.bottom: parent.bottom
0047             text: i18n("They don't match")
0048             icon.name: "dialog-cancel"
0049             onClicked: root.reject()
0050         }
0051     }
0052 }