OpenStudioCore:openstudio_lib
 All Classes Namespaces Functions Variables Enumerations Enumerator
Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
openstudio::OSDropZoneItem Class Reference

#include <OSDropZone.hpp>

+ Inheritance diagram for openstudio::OSDropZoneItem:

Signals

void componentDropped (const OSItemId &itemid)
 
void mouseClicked ()
 

Public Member Functions

QRectF boundingRect () const override
 
 OSDropZoneItem ()
 
void setSize (double width, double height)
 
void setText (const QString &text)
 
virtual ~OSDropZoneItem ()
 

Protected Member Functions

void dropEvent (QGraphicsSceneDragDropEvent *event) override
 
void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option,*widget) override
 

Protected Attributes

QString m_text
 

Constructor & Destructor Documentation

openstudio::OSDropZoneItem::OSDropZoneItem ( )
virtual openstudio::OSDropZoneItem::~OSDropZoneItem ( )
inlinevirtual

Member Function Documentation

QRectF openstudio::OSDropZoneItem::boundingRect ( ) const
override
void openstudio::OSDropZoneItem::componentDropped ( const OSItemId itemid)
signal
void openstudio::OSDropZoneItem::dropEvent ( QGraphicsSceneDragDropEvent *  event)
overrideprotected
void openstudio::OSDropZoneItem::mouseClicked ( )
signal
void openstudio::OSDropZoneItem::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotected
void openstudio::OSDropZoneItem::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotected
void openstudio::OSDropZoneItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
widget 
)
overrideprotected
void openstudio::OSDropZoneItem::setSize ( double  width,
double  height 
)
void openstudio::OSDropZoneItem::setText ( const QString &  text)

Member Data Documentation

QString openstudio::OSDropZoneItem::m_text
protected