From 39b240e25ad7fac7bb4bfb5ae3390505623238b7 Mon Sep 17 00:00:00 2001 From: Joseph Donofry Date: Tue, 9 Jun 2020 21:31:19 -0400 Subject: [PATCH] Remove unused QML file --- resources/qml/emoji/EmojiButton.qml | 2 +- resources/qml/emoji/EmojiCategory.qml | 67 --------------------------- 2 files changed, 1 insertion(+), 68 deletions(-) delete mode 100644 resources/qml/emoji/EmojiCategory.qml diff --git a/resources/qml/emoji/EmojiButton.qml b/resources/qml/emoji/EmojiButton.qml index ce856db4..f8f75e3e 100644 --- a/resources/qml/emoji/EmojiButton.qml +++ b/resources/qml/emoji/EmojiButton.qml @@ -15,4 +15,4 @@ ImageButton { id: emojiButton onClicked: emojiPicker.visible ? emojiPicker.close() : emojiPicker.show(emojiButton, room_id, event_id) -} \ No newline at end of file +} diff --git a/resources/qml/emoji/EmojiCategory.qml b/resources/qml/emoji/EmojiCategory.qml deleted file mode 100644 index 1cd42d0b..00000000 --- a/resources/qml/emoji/EmojiCategory.qml +++ /dev/null @@ -1,67 +0,0 @@ -import QtQuick 2.9 -import QtQuick.Controls 2.9 -import QtQuick.Layouts 1.3 -import QtGraphicalEffects 1.9 - -import im.nheko 1.0 -import im.nheko.EmojiModel 1.0 - -GridView { - id: root - property var category - property var emojiPopup - property EmojiProxyModel model: EmojiProxyModel { - sourceModel: EmojiModel { - viewCategory: category - } - } - - interactive: false - - cellWidth: 52 - cellHeight: 52 - height: 52 * ( model.count / 7 + 1 ) - - clip: true - - // Individual emoji - delegate: AbstractButton { - width: 48 - height: 48 - contentItem: Text { - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - font.family: settings.emoji_font_family - - font.pixelSize: 36 - text: model.unicode - } - - background: Rectangle { - anchors.fill: parent - color: hovered ? colors.highlight : 'transparent' - radius: 5 - } - - hoverEnabled: true - ToolTip.text: model.shortName - ToolTip.visible: hovered - - // give the emoji a little oomf - DropShadow { - width: parent.width; - height: parent.height; - horizontalOffset: 3 - verticalOffset: 3 - radius: 8.0 - samples: 17 - color: "#80000000" - source: parent.contentItem - } - // TODO: maybe add favorites at some point? - onClicked: { - console.debug("Picked " + model.unicode + "in response to " + emojiPopup.event_id + " in room " + emojiPopup.room_id) - emojiPopup.picked(emojiPopup.room_id, emojiPopup.event_id, model.unicode) - } - } -} \ No newline at end of file