summaryrefslogtreecommitdiffstats
path: root/examples/fonts/simple-qfont-demo/viewer.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/fonts/simple-qfont-demo/viewer.h')
-rw-r--r--examples/fonts/simple-qfont-demo/viewer.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/examples/fonts/simple-qfont-demo/viewer.h b/examples/fonts/simple-qfont-demo/viewer.h
new file mode 100644
index 000000000..1f72470a6
--- /dev/null
+++ b/examples/fonts/simple-qfont-demo/viewer.h
@@ -0,0 +1,37 @@
+
+#ifndef VIEWER_H
+#define VIEWER_H
+
+
+#include <qwidget.h>
+#include <qfont.h>
+
+class TQTextView;
+class TQPushButton;
+
+class Viewer : public TQWidget
+{
+Q_OBJECT
+
+public:
+ Viewer();
+
+private slots:
+ void setDefault();
+ void setSansSerif();
+ void setItalics();
+
+private:
+ void setFontSubstitutions();
+ void layout();
+ void showFontInfo( TQFont & );
+
+ TQTextView * greetings;
+ TQTextView * fontInfo;
+
+ TQPushButton * defaultButton;
+ TQPushButton * sansSerifButton;
+ TQPushButton * italicsButton;
+};
+
+#endif