summary refs log tree commit diff
path: root/resources/qml/device-verification/EmojiElement.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-10-08 21:11:21 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-10-08 21:11:21 +0200
commit1a029112d9e6168b123f6cdf4b49319ce4ea356d (patch)
treea4797860c06eeff4db1154132a084dccc9a963d9 /resources/qml/device-verification/EmojiElement.qml
parentMerge pull request #270 from Chethan2k1/device-verification (diff)
downloadnheko-1a029112d9e6168b123f6cdf4b49319ce4ea356d.tar.xz
Lint qml with qml-format
Diffstat (limited to 'resources/qml/device-verification/EmojiElement.qml')
-rw-r--r--resources/qml/device-verification/EmojiElement.qml47
1 files changed, 27 insertions, 20 deletions
diff --git a/resources/qml/device-verification/EmojiElement.qml b/resources/qml/device-verification/EmojiElement.qml

index 7e364594..73ad1c9b 100644 --- a/resources/qml/device-verification/EmojiElement.qml +++ b/resources/qml/device-verification/EmojiElement.qml
@@ -3,24 +3,31 @@ import QtQuick.Controls 2.10 import QtQuick.Layouts 1.10 Rectangle { - color: "red" - implicitHeight: Qt.application.font.pixelSize * 4 - implicitWidth: col.width - height: Qt.application.font.pixelSize * 4 - width: col.width - ColumnLayout { - id: col - anchors.bottom: parent.bottom - property var emoji: emojis.mapping[Math.floor(Math.random()*64)] - Label { - height: font.pixelSize * 2 - Layout.alignment: Qt.AlignHCenter - text: col.emoji.emoji - font.pixelSize: Qt.application.font.pixelSize * 2 - } - Label { - Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom - text: col.emoji.description - } - } + color: "red" + implicitHeight: Qt.application.font.pixelSize * 4 + implicitWidth: col.width + height: Qt.application.font.pixelSize * 4 + width: col.width + + ColumnLayout { + id: col + + property var emoji: emojis.mapping[Math.floor(Math.random() * 64)] + + anchors.bottom: parent.bottom + + Label { + height: font.pixelSize * 2 + Layout.alignment: Qt.AlignHCenter + text: col.emoji.emoji + font.pixelSize: Qt.application.font.pixelSize * 2 + } + + Label { + Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom + text: col.emoji.description + } + + } + }