Developer Documentation
VSI::Trash Class Reference

#include <Plugin-VSI/scene/trash.hh>

Inheritance diagram for VSI::Trash:

Public Member Functions

 Trash (GraphicsScene *_scene, QGraphicsItem *_parent)
 Constructor. More...
 
 ~Trash ()
 Destructor. More...
 
void activate ()
 Makes the trash opaque (will be called of an element is moved above this widget) More...
 
void deactivate ()
 Makes the trash transparent (will be called of an element is moved away from this widget) More...
 
virtual void setGeometry (const QRectF &_rect)
 Sets the geometry. More...
 

Protected Member Functions

virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *_event)
 
virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *_event)
 
virtual void mousePressEvent (QGraphicsSceneMouseEvent *_event)
 
virtual QSizeF sizeHint (Qt::SizeHint _which, const QSizeF &_constraint=QSizeF()) const
 

Private Attributes

GraphicsScenescene_
 

Detailed Description

Trash widget that removes elements from the scene_

Definition at line 63 of file trash.hh.

Constructor & Destructor Documentation

◆ Trash()

VSI::Trash::Trash ( GraphicsScene _scene,
QGraphicsItem *  _parent 
)

Constructor.

Definition at line 66 of file trash.cc.

◆ ~Trash()

VSI::Trash::~Trash ( )

Destructor.

Definition at line 80 of file trash.cc.

Member Function Documentation

◆ activate()

void VSI::Trash::activate ( )

Makes the trash opaque (will be called of an element is moved above this widget)

Definition at line 119 of file trash.cc.

◆ deactivate()

void VSI::Trash::deactivate ( )

Makes the trash transparent (will be called of an element is moved away from this widget)

Definition at line 127 of file trash.cc.

◆ hoverEnterEvent()

void VSI::Trash::hoverEnterEvent ( QGraphicsSceneHoverEvent *  _event)
protectedvirtual

Definition at line 87 of file trash.cc.

◆ hoverLeaveEvent()

void VSI::Trash::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  _event)
protectedvirtual

Definition at line 96 of file trash.cc.

◆ mousePressEvent()

void VSI::Trash::mousePressEvent ( QGraphicsSceneMouseEvent *  _event)
protectedvirtual

Definition at line 104 of file trash.cc.

◆ setGeometry()

void VSI::Trash::setGeometry ( const QRectF &  _rect)
virtual

Sets the geometry.

Definition at line 135 of file trash.cc.

◆ sizeHint()

QSizeF VSI::Trash::sizeHint ( Qt::SizeHint  _which,
const QSizeF &  _constraint = QSizeF() 
) const
protectedvirtual

Definition at line 144 of file trash.cc.

Member Data Documentation

◆ scene_

GraphicsScene* VSI::Trash::scene_
private

Definition at line 97 of file trash.hh.


The documentation for this class was generated from the following files: