source: trunk/examples/qfd/fontdisplayer.h@ 20

Last change on this file since 20 was 2, checked in by dmik, 20 years ago

Imported xplatform parts of the official release 3.3.1 from Trolltech

  • Property svn:keywords set to Id
File size: 1.0 KB
Line 
1/****************************************************************************
2** $Id: fontdisplayer.h 2 2005-11-16 15:49:26Z dmik $
3**
4** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
5**
6** This file is part of an example program for Qt. This example
7** program may be used, distributed and modified without limitation.
8**
9*****************************************************************************/
10
11#ifndef FontDisplayer_H
12#define FontDisplayer_H
13
14#include <qframe.h>
15#include <qmainwindow.h>
16
17class QSlider;
18
19class FontRowTable : public QFrame {
20 Q_OBJECT
21public:
22 FontRowTable( QWidget* parent=0, const char* name=0 );
23
24 QSize sizeHint() const;
25
26signals:
27 void fontInformation(const QString&);
28
29public slots:
30 void setRow(int);
31 void chooseFont();
32
33
34protected:
35 QSize cellSize() const;
36 void paintEvent( QPaintEvent* );
37private:
38 QFont tablefont;
39 int row;
40};
41
42class FontDisplayer : public QMainWindow {
43 Q_OBJECT
44public:
45 FontDisplayer( QWidget* parent=0, const char* name=0 );
46};
47
48#endif
Note: See TracBrowser for help on using the repository browser.