qdeclarativesparticlespainter.h 759 B

1234567891011121314151617181920212223242526272829
  1. #ifndef QDECLARATIVESPARTICLESPAINTER_H
  2. #define QDECLARATIVESPARTICLESPAINTER_H
  3. #include <QDeclarativeItem>
  4. class QDeclarativeSParticlesPrivate;
  5. class QDeclarativeSParticlesPainter : public QDeclarativeItem
  6. {
  7. public:
  8. QDeclarativeSParticlesPainter(QDeclarativeSParticlesPrivate *p, QDeclarativeItem* parent);
  9. // : QDeclarativeItem(parent), d(p)
  10. // {
  11. // setFlag(QGraphicsItem::ItemHasNoContents, false);
  12. //// maxX = minX = maxY = minY = 0;
  13. // }
  14. void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *);
  15. void updateSize();
  16. // qreal maxX;
  17. // qreal minX;
  18. // qreal maxY;
  19. // qreal minY;
  20. QDeclarativeSParticlesPrivate* d;
  21. };
  22. #endif // QDECLARATIVESPARTICLESPAINTER_H