No longer honours following status in JSON, instead relies solely on following list.
[larjonas-pumpa.git] / src / imagelabel.h
bloba8c19245a3d3ef56bdea392e1ef624237ab170d7
1 /*
2 Copyright 2013-2015 Mats Sjöberg
4 This file is part of the Pumpa programme.
6 Pumpa is free software: you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 Pumpa is distributed in the hope that it will be useful, but WITHOUT
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
14 License for more details.
16 You should have received a copy of the GNU General Public License
17 along with Pumpa. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef _IMAGELABEL_H_
21 #define _IMAGELABEL_H_
23 #include <QLabel>
24 #include <QWidget>
25 #include <QMouseEvent>
27 //------------------------------------------------------------------------------
29 class ImageLabel : public QLabel {
30 Q_OBJECT
32 public:
33 ImageLabel(QWidget* parent=0);
35 signals:
36 void clicked();
38 protected:
39 virtual void mousePressEvent(QMouseEvent*);
42 #endif /* _IMAGELABEL_H_ */