- Group the imports into Qt, KDE, NeoChat - Import the latest versions - Remove unused imports - Remove unused components - Unify license header styling
29 lines
671 B
QML
29 lines
671 B
QML
// SPDX-FileCopyrightText: 2020 Carl Schwan <carl@carlschwan.eu>
|
|
// SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
import QtQuick 2.15
|
|
import QtQuick.Controls 2.15 as QQC2
|
|
|
|
import org.kde.kirigami 2.15 as Kirigami
|
|
|
|
import org.kde.neochat 1.0
|
|
import NeoChat.Component.Emoji 1.0
|
|
|
|
QQC2.Popup {
|
|
id: root
|
|
|
|
signal react(string emoji)
|
|
|
|
modal: true
|
|
focus: true
|
|
closePolicy: QQC2.Popup.CloseOnEscape | QQC2.Popup.CloseOnPressOutsideParent
|
|
margins: 0
|
|
padding: Kirigami.Units.smallSpacing
|
|
implicitWidth: Kirigami.Units.gridUnit * 15
|
|
implicitHeight: Kirigami.Units.gridUnit * 20
|
|
|
|
contentItem: EmojiPicker {
|
|
onChosen: react(emoji)
|
|
}
|
|
}
|