comparison src/imagelabel.h @ 3:248d5d1cdb38

Add functionalty to control buttons and make picture resizable
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 23 Mar 2015 19:10:01 +0100
parents
children 64a51a42c01f
comparison
equal deleted inserted replaced
2:97d2c8869c39 3:248d5d1cdb38
1 #ifndef IMAGELABEL_H
2 #define IMAGELABEL_H
3 /* Copyright (C) 2014 by Intevation GmbH
4 *
5 * This file is Free Software under the GNU GPL (v>=2)
6 * and comes with ABSOLUTELY NO WARRANTY!
7 * See LICENSE.txt for details.
8 */
9
10 #include <QWidget>
11 #include <QPixmap>
12 #include <QLabel>
13
14 class ImageLabel : public QWidget
15 {
16 Q_OBJECT
17
18 public:
19 explicit ImageLabel(QWidget *parent = 0);
20 const QPixmap* pixmap() const;
21
22 public slots:
23 void setPixmap(const QPixmap&);
24
25 protected:
26 void resizeEvent(QResizeEvent *);
27
28 private slots:
29 void resizeImage();
30
31 private:
32 QLabel *label;
33 };
34
35 #endif // IMAGELABEL_H
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)