Fix emoji picker's theme
This commit is contained in:
parent
552941118b
commit
56d8be5a27
6 changed files with 42 additions and 63 deletions
|
|
@ -37,6 +37,9 @@ public:
|
|||
signals:
|
||||
void emojiSelected(const QString &emoji);
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *event) override;
|
||||
|
||||
private slots:
|
||||
void clickIndex(const QModelIndex &index)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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_;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue