QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
qtscriptshell_QGraphicsPixmapItem.h
Go to the documentation of this file.
1 #ifndef QTSCRIPTSHELL_QGRAPHICSPIXMAPITEM_H
2 #define QTSCRIPTSHELL_QGRAPHICSPIXMAPITEM_H
3 
4 #include <qgraphicsitem.h>
5 
6 #include <QtScript/qscriptvalue.h>
7 
8 class QtScriptShell_QGraphicsPixmapItem : public QGraphicsPixmapItem
9 {
10 public:
11  QtScriptShell_QGraphicsPixmapItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0);
12  QtScriptShell_QGraphicsPixmapItem(const QPixmap& pixmap, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0);
14 
15  void advance(int phase);
16  QRectF boundingRect() const;
17  bool collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const;
18  bool collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const;
19  bool contains(const QPointF& point) const;
20  void contextMenuEvent(QGraphicsSceneContextMenuEvent* event);
21  void dragEnterEvent(QGraphicsSceneDragDropEvent* event);
22  void dragLeaveEvent(QGraphicsSceneDragDropEvent* event);
23  void dragMoveEvent(QGraphicsSceneDragDropEvent* event);
24  void dropEvent(QGraphicsSceneDragDropEvent* event);
25  QVariant extension(const QVariant& variant) const;
26  void focusInEvent(QFocusEvent* event);
27  void focusOutEvent(QFocusEvent* event);
28  void hoverEnterEvent(QGraphicsSceneHoverEvent* event);
29  void hoverLeaveEvent(QGraphicsSceneHoverEvent* event);
30  void hoverMoveEvent(QGraphicsSceneHoverEvent* event);
31  void inputMethodEvent(QInputMethodEvent* event);
32  QVariant inputMethodQuery(Qt::InputMethodQuery query) const;
33  bool isObscuredBy(const QGraphicsItem* item) const;
34  QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value);
35  void keyPressEvent(QKeyEvent* event);
36  void keyReleaseEvent(QKeyEvent* event);
37  void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event);
38  void mouseMoveEvent(QGraphicsSceneMouseEvent* event);
39  void mousePressEvent(QGraphicsSceneMouseEvent* event);
40  void mouseReleaseEvent(QGraphicsSceneMouseEvent* event);
41  QPainterPath opaqueArea() const;
42  void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget);
43  bool sceneEvent(QEvent* event);
44  bool sceneEventFilter(QGraphicsItem* watched, QEvent* event);
45  QPainterPath shape() const;
46  int type() const;
47  void wheelEvent(QGraphicsSceneWheelEvent* event);
48 
49  QScriptValue __qtscript_self;
50 };
51 
52 #endif // QTSCRIPTSHELL_QGRAPHICSPIXMAPITEM_H