/* * Copyright (c) 2015 Daniel Baczynski * Licensed under the Simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ /* * Copyright (c) 2016 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <map> #include <string> #include <QLabel> #include <QPixmap> #include <QString> class QWidget; class QMouseEvent; namespace Swift { class QtEmoticonCell : public QLabel { Q_OBJECT public: QtEmoticonCell(const QString emoticonAsText, QString filePath, QWidget* parent = nullptr); ~QtEmoticonCell(); virtual void mousePressEvent(QMouseEvent* event); signals: void emoticonClicked(QString emoticonAsText); private: QString emoticonAsText_; }; }