]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiClickableLabel.h
Use <cstdint> instead of <boost/cstdint.hpp>
[lyx.git] / src / frontends / qt4 / GuiClickableLabel.h
1 // -*- C++ -*-
2 /**
3  * \file GuiClickableLabel.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * Full author contact details are available in file CREDITS.
8  */
9
10 #ifndef GUICLICKABLELABEL_H
11 #define GUICLICKABLELABEL_H
12
13 #include <QLabel>
14
15 namespace lyx {
16 namespace frontend {
17
18 // see https://wiki.qt.io/Clickable_QLabel
19 class GuiClickableLabel : public QLabel {
20         Q_OBJECT
21 public:
22         explicit GuiClickableLabel(QWidget * parent);
23
24         ~GuiClickableLabel();
25
26 Q_SIGNALS:
27         void clicked();
28
29 protected:
30         void mouseReleaseEvent(QMouseEvent *);
31 };
32
33 }
34 }
35 #endif