From bd0f3345a938b35ce6a12f6150373b0955b8dd12 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 10 Jul 2011 15:24:15 -0500 Subject: Add Qt3 development HEAD version --- doc/html/t10-cannon-h.html | 85 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 doc/html/t10-cannon-h.html (limited to 'doc/html/t10-cannon-h.html') diff --git a/doc/html/t10-cannon-h.html b/doc/html/t10-cannon-h.html new file mode 100644 index 0000000..6bd6d6a --- /dev/null +++ b/doc/html/t10-cannon-h.html @@ -0,0 +1,85 @@ + + + + + +t10/cannon.h Example File + + + + + + + +
+ +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

t10/cannon.h Example File

+ + +
/****************************************************************
+**
+** Definition of CannonField class, Qt tutorial 10
+**
+****************************************************************/
+
+#ifndef CANNON_H
+#define CANNON_H
+
+#include <qwidget.h>
+
+
+class CannonField : public QWidget
+{
+    Q_OBJECT
+public:
+    CannonField( QWidget *parent=0, const char *name=0 );
+
+    QSizePolicy sizePolicy() const;
+
+    int   angle() const { return ang; }
+    int   force() const { return f; }
+
+public slots:
+    void  setAngle( int degrees );
+    void  setForce( int newton );
+
+signals:
+    void  angleChanged( int );
+    void  forceChanged( int );
+
+protected:
+    void  paintEvent( QPaintEvent * );
+
+private:
+    QRect cannonRect() const;
+
+    int ang;
+    int f;
+};
+
+
+#endif // CANNON_H
+
+


+ +
Copyright © 2007 +TrolltechTrademarks +
Qt 3.3.8
+
+ -- cgit v1.2.1