]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiFontExample.h
Fix the tab ordering of PanelStack and PrefsUi.
[lyx.git] / src / frontends / qt4 / GuiFontExample.h
1 // -*- C++ -*-
2 /**
3  * \file GuiFontExample.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GUIFONTEXAMPLE_H
13 #define GUIFONTEXAMPLE_H
14
15 #include <QWidget>
16 #include <QFont>
17 #include <QString>
18
19 class QPaintEvent;
20
21 //namespace lyx {
22
23 class GuiFontExample : public QWidget
24 {
25 public:
26         GuiFontExample(QWidget * parent) : QWidget(parent) {}
27
28         void set(QFont const & font, QString const & text);
29
30         virtual QSize sizeHint() const;
31
32 protected:
33         virtual void paintEvent(QPaintEvent * p);
34
35 private:
36         QFont font_;
37         QString text_;
38 };
39
40
41 //} // namespace lyx
42
43 #endif // GUIFONTEXAMPLE_H