Signals | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
find_object::RectItem Class Reference

#include <RectItem.h>

Inheritance diagram for find_object::RectItem:
Inheritance graph
[legend]

Signals

void hovered (int)
 

Public Member Functions

int id () const
 
 RectItem (int id, const QRectF &rect, QGraphicsItem *parent=0)
 
void setColor (const QColor &color)
 
virtual ~RectItem ()
 

Protected Member Functions

virtual void focusInEvent (QFocusEvent *event)
 
virtual void focusOutEvent (QFocusEvent *event)
 
virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *event)
 
virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *event)
 

Private Member Functions

void hideDescription ()
 
void showDescription ()
 

Private Attributes

int id_
 
QGraphicsRectItem * placeHolder_
 

Detailed Description

Definition at line 38 of file RectItem.h.

Constructor & Destructor Documentation

◆ RectItem()

find_object::RectItem::RectItem ( int  id,
const QRectF &  rect,
QGraphicsItem *  parent = 0 
)

Definition at line 36 of file RectItem.cpp.

◆ ~RectItem()

find_object::RectItem::~RectItem ( )
virtual

Definition at line 46 of file RectItem.cpp.

Member Function Documentation

◆ focusInEvent()

void find_object::RectItem::focusInEvent ( QFocusEvent *  event)
protectedvirtual

Definition at line 143 of file RectItem.cpp.

◆ focusOutEvent()

void find_object::RectItem::focusOutEvent ( QFocusEvent *  event)
protectedvirtual

Definition at line 149 of file RectItem.cpp.

◆ hideDescription()

void find_object::RectItem::hideDescription ( )
private

Definition at line 119 of file RectItem.cpp.

◆ hovered

void find_object::RectItem::hovered ( int  )
signal

◆ hoverEnterEvent()

void find_object::RectItem::hoverEnterEvent ( QGraphicsSceneHoverEvent *  event)
protectedvirtual

Definition at line 128 of file RectItem.cpp.

◆ hoverLeaveEvent()

void find_object::RectItem::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  event)
protectedvirtual

Definition at line 134 of file RectItem.cpp.

◆ id()

int find_object::RectItem::id ( ) const
inline

Definition at line 47 of file RectItem.h.

◆ setColor()

void find_object::RectItem::setColor ( const QColor &  color)

Definition at line 50 of file RectItem.cpp.

◆ showDescription()

void find_object::RectItem::showDescription ( )
private

Definition at line 64 of file RectItem.cpp.

Member Data Documentation

◆ id_

int find_object::RectItem::id_
private

Definition at line 64 of file RectItem.h.

◆ placeHolder_

QGraphicsRectItem* find_object::RectItem::placeHolder_
private

Definition at line 63 of file RectItem.h.


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


find_object_2d
Author(s): Mathieu Labbe
autogenerated on Mon Dec 12 2022 03:20:10