mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-17 05:15:29 +00:00
36 lines
608 B
C
36 lines
608 B
C
|
// -*- C++ -*-
|
||
|
/**
|
||
|
* \file GuiClickableLabel.h
|
||
|
* This file is part of LyX, the document processor.
|
||
|
* Licence details can be found in the file COPYING.
|
||
|
*
|
||
|
* Full author contact details are available in file CREDITS.
|
||
|
*/
|
||
|
|
||
|
#ifndef GUICLICKABLELABEL_H
|
||
|
#define GUICLICKABLELABEL_H
|
||
|
|
||
|
#include <QLabel>
|
||
|
|
||
|
namespace lyx {
|
||
|
namespace frontend {
|
||
|
|
||
|
// see https://wiki.qt.io/Clickable_QLabel
|
||
|
class GuiClickableLabel : public QLabel {
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
explicit GuiClickableLabel(QWidget * parent);
|
||
|
|
||
|
~GuiClickableLabel();
|
||
|
|
||
|
Q_SIGNALS:
|
||
|
void clicked();
|
||
|
|
||
|
protected:
|
||
|
void mouseReleaseEvent(QMouseEvent *);
|
||
|
};
|
||
|
|
||
|
}
|
||
|
}
|
||
|
#endif
|