diff options
Diffstat (limited to 'Swift/QtUI/QtEmojiCell.h')
-rw-r--r-- | Swift/QtUI/QtEmojiCell.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Swift/QtUI/QtEmojiCell.h b/Swift/QtUI/QtEmojiCell.h new file mode 100644 index 0000000..250b10d --- /dev/null +++ b/Swift/QtUI/QtEmojiCell.h @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2016-2017 Isode Limited. + * All rights reserved. + * See the COPYING file for more information. + */ + +#pragma once + +#include <QPushButton> +#include <QString> + +#include <SwifTools/EmojiMapper.h> + +class QWidget; +class QMouseEvent; + +namespace Swift { + class QtEmojiCell : public QPushButton { + Q_OBJECT + public: + QtEmojiCell(const QtEmojiCell& b); + QtEmojiCell(QString shortname, QString text, QWidget* parent = nullptr); + QtEmojiCell(QIcon icon, QString text, QWidget* parent = nullptr); + ~QtEmojiCell(); + + signals: + void emojiClicked(QString emojiAsText); + + private slots: + void handleEmojiClicked(); + + private: + QString text_; + }; +} |