matrixion/resources/qml/emoji/EmojiButton.qml

19 lines
432 B
QML
Raw Normal View History

import QtQuick 2.10
import QtQuick.Controls 2.1
import im.nheko 1.0
import im.nheko.EmojiModel 1.0
import "../"
ImageButton {
property var colors: currentActivePalette
2020-05-14 03:19:15 +03:00
property var emojiPicker
property string room_id
property string event_id
image: ":/icons/icons/ui/smile.png"
id: emojiButton
onClicked: emojiPicker.visible ? emojiPicker.close() : emojiPicker.show(emojiButton, room_id, event_id)
2020-06-10 04:31:19 +03:00
}