File: imagelabel.h

package info (click to toggle)
stellarsolver 2.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,112 kB
  • sloc: ansic: 31,587; cpp: 15,103; python: 186; sh: 74; pascal: 67; perl: 9; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 565 bytes parent folder | download | duplicates (2)
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
#ifndef IMAGELABEL_H
#define IMAGELABEL_H

//Qt Includes
#include <QLabel>
#include <QMouseEvent>
#include <QPoint>

class ImageLabel : public QLabel
{
    Q_OBJECT
public:
    ImageLabel(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
    void mouseMoveEvent(QMouseEvent *ev) override;
    void mousePressEvent(QMouseEvent *ev) override;
    void mouseReleaseEvent(QMouseEvent *ev) override;

signals:
    void mouseDown(QPoint location);
    void mouseClicked(QPoint location);
    void mouseMoved(QPoint location);

};

#endif // IMAGELABEL_H