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/chart-canvasview-h.html | 78 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 doc/html/chart-canvasview-h.html (limited to 'doc/html/chart-canvasview-h.html') diff --git a/doc/html/chart-canvasview-h.html b/doc/html/chart-canvasview-h.html new file mode 100644 index 0000000..fb79339 --- /dev/null +++ b/doc/html/chart-canvasview-h.html @@ -0,0 +1,78 @@ + + + + + +chart/canvasview.h Example File + + + + + + + +
+ +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

chart/canvasview.h Example File

+ + +
#ifndef CANVASVIEW_H
+#define CANVASVIEW_H
+
+#include "element.h"
+#include "canvastext.h"
+
+#include <qcanvas.h>
+
+
+class QPoint;
+
+
+class CanvasView : public QCanvasView
+{
+    Q_OBJECT
+public:
+    CanvasView( QCanvas *canvas, ElementVector *elements,
+                QWidget* parent = 0, const char* name = "canvas view",
+                WFlags f = 0 )
+        : QCanvasView( canvas, parent, name, f ), m_movingItem(0),
+          m_elements( elements ) {}
+
+protected:
+    void viewportResizeEvent( QResizeEvent *e );
+    void contentsMousePressEvent( QMouseEvent *e );
+    void contentsMouseMoveEvent( QMouseEvent *e );
+    void contentsContextMenuEvent( QContextMenuEvent *e );
+
+private:
+    QCanvasItem *m_movingItem;
+    QPoint m_pos;
+    ElementVector *m_elements;
+};
+
+
+#endif
+
+


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