source: trunk/examples/fonts/simple-qfont-demo/viewer.h@ 7

Last change on this file since 7 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: 587 bytes
Line 
1/* $Id: viewer.h 2 2005-11-16 15:49:26Z dmik $ */
2
3#ifndef VIEWER_H
4#define VIEWER_H
5
6
7#include <qwidget.h>
8#include <qfont.h>
9
10class QTextView;
11class QPushButton;
12
13class Viewer : public QWidget
14{
15Q_OBJECT
16
17public:
18 Viewer();
19
20private slots:
21 void setDefault();
22 void setSansSerif();
23 void setItalics();
24
25private:
26 void setFontSubstitutions();
27 void layout();
28 void showFontInfo( QFont & );
29
30 QTextView * greetings;
31 QTextView * fontInfo;
32
33 QPushButton * defaultButton;
34 QPushButton * sansSerifButton;
35 QPushButton * italicsButton;
36};
37
38#endif
Note: See TracBrowser for help on using the repository browser.