From 56d8be5a27f12a575c7e28ad3aaa263eb3c507b5 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Wed, 22 Nov 2017 21:03:53 +0200 Subject: Fix emoji picker's theme --- include/EmojiCategory.h | 3 +++ include/EmojiPanel.h | 9 --------- 2 files changed, 3 insertions(+), 9 deletions(-) (limited to 'include') diff --git a/include/EmojiCategory.h b/include/EmojiCategory.h index 06099f3d..0eb4aeb1 100644 --- a/include/EmojiCategory.h +++ b/include/EmojiCategory.h @@ -37,6 +37,9 @@ public: signals: void emojiSelected(const QString &emoji); +protected: + void paintEvent(QPaintEvent *event) override; + private slots: void clickIndex(const QModelIndex &index) { diff --git a/include/EmojiPanel.h b/include/EmojiPanel.h index 211d916b..9eecc8e0 100644 --- a/include/EmojiPanel.h +++ b/include/EmojiPanel.h @@ -17,8 +17,6 @@ #pragma once -#include -#include #include #include "EmojiProvider.h" @@ -32,9 +30,6 @@ class EmojiPanel : public QWidget public: EmojiPanel(QWidget *parent = nullptr); - void fadeOut(); - void fadeIn(); - signals: void mouseLeft(); void emojiSelected(const QString &emoji); @@ -46,9 +41,6 @@ protected: private: void showEmojiCategory(const EmojiCategory *category); - QPropertyAnimation *animation_; - QGraphicsOpacityEffect *opacity_; - EmojiProvider emoji_provider_; QScrollArea *scrollArea_; @@ -59,6 +51,5 @@ private: int width_; int height_; - int animationDuration_; int categoryIconSize_; }; -- cgit 1.5.1