summary refs log tree commit diff
path: root/resources/qml/emoji/EmojiButton.qml
blob: c5eee4e4201e00b6f91601f470efafa28abfd39e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
    property var emojiPicker
    property string event_id

    image: ":/icons/icons/ui/smile.png"
    id: emojiButton
    onClicked: emojiPicker.visible ? emojiPicker.close() : emojiPicker.show(emojiButton, event_id)

}