diff options
Diffstat (limited to 'Swift/QtUI/QtEmojisGrid.h')
-rw-r--r-- | Swift/QtUI/QtEmojisGrid.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Swift/QtUI/QtEmojisGrid.h b/Swift/QtUI/QtEmojisGrid.h new file mode 100644 index 0000000..e4bc664 --- /dev/null +++ b/Swift/QtUI/QtEmojisGrid.h @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2016-2017 Isode Limited. + * All rights reserved. + * See the COPYING file for more information. + */ + +#pragma once + +#include <QGridLayout> +#include <QString> +#include <QVector> + +#include <SwifTools/EmojiMapper.h> + +namespace Swift { + class QtEmojisGrid : public QGridLayout { + Q_OBJECT + public: + explicit QtEmojisGrid(); + explicit QtEmojisGrid(QString categoryName); + + protected: + void setEmojis(const QVector<QString>& emojis); + + private: + void clearEmojis(); + + signals: + void onEmojiSelected(QString emoji); + }; +} |