]> git.lyx.org Git - features.git/blob - src/frontends/qt/GuiClickableLabel.cpp
Change FontMetrics::breakAt to return a position
[features.git] / src / frontends / qt / GuiClickableLabel.cpp
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 #include "config.h"
11
12 #include "GuiClickableLabel.h"
13
14 #include <QStyle>
15
16 namespace lyx {
17 namespace frontend {
18
19 GuiClickableLabel::GuiClickableLabel(QWidget * parent)
20         : QLabel(parent)
21 {}
22
23 GuiClickableLabel::~GuiClickableLabel()
24 {}
25
26 void GuiClickableLabel::mouseReleaseEvent(QMouseEvent *) {
27         Q_EMIT clicked();
28 }
29
30 }
31 }
32
33 #include "moc_GuiClickableLabel.cpp"