lyx_mirror/src/frontends/qt2/qfontexample.h
Lars Gullik Bjønnes 13349032cb ws changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5758 a592a061-630c-0410-9148-cb99ea01b6c8
2002-12-01 22:59:25 +00:00

31 lines
582 B
C++

/**
* \file qfontexample.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author John Levon
*
* Full author contact details are available in file CREDITS
*/
#include <qwidget.h>
#include <qfont.h>
class QFontExample : public QWidget {
public:
QFontExample(QWidget * parent, const char * name)
: QWidget(parent, name) {}
void set(QFont const & font, QString const & text);
virtual QSize sizeHint() const;
protected:
virtual void paintEvent(QPaintEvent * p);
private:
QFont font_;
QString text_;
};