mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-10 18:58:10 +00:00
0be0fcfd59
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7598 a592a061-630c-0410-9148-cb99ea01b6c8
32 lines
598 B
C++
32 lines
598 B
C++
// -*- 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_;
|
|
};
|