]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/ToolTipFormatter.h
Set a maximum value to zoom level
[lyx.git] / src / frontends / qt4 / ToolTipFormatter.h
1 // -*- C++ -*-
2 /**
3  * \file ToolTipFormatter.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Guillaume Munch
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef TOOLTIPFORMATTER_H
13 #define TOOLTIPFORMATTER_H
14
15 #include <QObject>
16
17 class QEvent;
18
19 namespace lyx {
20 namespace frontend {
21
22
23 /// This event filter intercepts ToolTip events, to format any tooltip
24 /// appropriately before display.
25 class ToolTipFormatter : public QObject {
26         Q_OBJECT
27 public:
28         ToolTipFormatter(QObject * parent);
29 protected:
30         bool eventFilter(QObject * o, QEvent * e);
31 };
32
33
34 } // namespace frontend
35 } // namespace lyx
36
37 #endif // TOOLTIPFORMATTER_H