mirror of https://github.com/CGAL/cgal
New signal, in Scene_item, that will be emitted just before an item is
destroyed by the scene.
This commit is contained in:
parent
50a9d76db0
commit
edcd3846c3
|
|
@ -4,6 +4,11 @@ const QColor Scene_item::defaultColor = QColor(100, 100, 255);
|
|||
|
||||
Scene_item::~Scene_item() {}
|
||||
|
||||
void Scene_item::itemAboutToBeDestroyed(Scene_item* item) {
|
||||
if(this == item)
|
||||
emit aboutToBeDestroyed();
|
||||
}
|
||||
|
||||
// Rendering mode as a human readable string
|
||||
QString Scene_item::renderingModeName() const
|
||||
{
|
||||
|
|
|
|||
|
|
@ -76,6 +76,11 @@ public slots:
|
|||
rendering_mode = m;
|
||||
}
|
||||
|
||||
virtual void itemAboutToBeDestroyed(Scene_item*);
|
||||
|
||||
signals:
|
||||
void aboutToBeDestroyed();
|
||||
|
||||
protected:
|
||||
// The four basic properties
|
||||
QString name_;
|
||||
|
|
|
|||
Loading…
Reference in New Issue