Add signal modelChanged for inout handlers that modify a model

This commit is contained in:
Andreas Fabri 2008-07-09 15:02:52 +00:00
parent d70aceb7bc
commit fb894e0f08
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,5 @@
#ifndef CGAL_QT_RAPHICS_VIEW_INPUT_H #ifndef CGAL_QT_GRAPHICS_VIEW_INPUT_H
#define CGAL_QT_RAPHICS_VIEW_INPUT_H #define CGAL_QT_GRAPHICS_VIEW_INPUT_H
#include <CGAL/Object.h> #include <CGAL/Object.h>
#include <QObject> #include <QObject>
@ -17,9 +17,10 @@ public:
signals: signals:
void generate(CGAL::Object o); void generate(CGAL::Object o);
void modelChanged();
}; };
} // namespace Qt } // namespace Qt
} // namespace CGAL } // namespace CGAL
#endif // CGAL_QT_RAPHICS_VIEW_INPUT_H #endif // CGAL_QT_GRAPHICS_VIEW_INPUT_H

View File

@ -25,6 +25,7 @@ public:
void modelChanged(); void modelChanged();
public: public:
QRectF boundingRect() const; QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);