diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-11-22 21:03:53 +0200 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-11-22 21:03:53 +0200 |
commit | 56d8be5a27f12a575c7e28ad3aaa263eb3c507b5 (patch) | |
tree | 28a09fae02a9b6c2b240e56f25fff88c44036c72 /include | |
parent | 552941118bb7f94bfb3ff8c7f854380408c85ffe (diff) |
Fix emoji picker's theme
Diffstat (limited to 'include')
-rw-r--r-- | include/EmojiCategory.h | 3 | ||||
-rw-r--r-- | include/EmojiPanel.h | 9 |
2 files changed, 3 insertions, 9 deletions
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 <QGraphicsOpacityEffect> -#include <QPropertyAnimation> #include <QScrollArea> #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_; }; |