diff src/imagelabel.h @ 38:26e1521b9afd

Add the possibility to detach the picture label on doubleclick
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 06 May 2015 18:09:34 +0200
parents 64a51a42c01f
children 098a10fc2e83
line wrap: on
line diff
--- a/src/imagelabel.h	Wed May 06 17:17:13 2015 +0200
+++ b/src/imagelabel.h	Wed May 06 18:09:34 2015 +0200
@@ -12,6 +12,8 @@
 #include <QPixmap>
 #include <QLabel>
 
+class QMouseEvent;
+
 class ImageLabel : public QWidget
 {
     Q_OBJECT
@@ -23,8 +25,14 @@
 public slots:
     void setPixmap(const QPixmap&);
 
+Q_SIGNALS:
+    void doubleClicked();
+    void closeRequested();
+
 protected:
     void resizeEvent(QResizeEvent *);
+    void mouseDoubleClickEvent(QMouseEvent * event);
+    void closeEvent(QCloseEvent *);
 
 private slots:
     void resizeImage();
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)