lyx_mirror/src/frontends/qt/GuiClickableLabel.h
Daniel Ramoeller 974534f28a Disentangle status bar and zoom menu
- Moves the zoom menu to the zoom value
2022-09-13 11:49:41 +02:00

38 lines
681 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();
void pressed();
protected:
void mousePressEvent(QMouseEvent *) override;
void mouseReleaseEvent(QMouseEvent *) override;
};
}
}
#endif