summaryrefslogtreecommitdiffstats
blob: b7ba87f864f5e4999e77a6981308f5283fe5f08e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * Copyright (c) 2016-2017 Isode Limited.
 * All rights reserved.
 * See the COPYING file for more information.
 */

#pragma once

#include <QString>
#include <QVector>

#include <SwifTools/EmojiMapper.h>

#include <Swift/QtUI/FlowLayout.h>

namespace Swift {
    class QtEmojisGrid : public FlowLayout {
        Q_OBJECT
        public:
            explicit QtEmojisGrid();
            explicit QtEmojisGrid(QString categoryName);

        protected:
            void setEmojis(const QVector<QString>& emojis);

        private:
            void clearEmojis();

        signals:
            void onEmojiSelected(QString emoji);
    };
}