tlp::GlMainWidgetItem Class Reference#include <GlMainWidgetItem.h>
Collaboration diagram for tlp::GlMainWidgetItem:
[legend]List of all members.
Detailed Description
Class use to render a GlMainWidget on GraphicsView.
Use this class if you want to add a GlMainWidget in the form of QGraphicsItem
Public Member Functions
Protected Slots
Protected Member Functions
Constructor & Destructor Documentation
tlp::GlMainWidgetItem::GlMainWidgetItem |
( |
GlMainWidgetGraphicsView * |
parent, |
|
|
GlMainWidget * |
glMainWidget, |
|
|
int |
width, |
|
|
int |
height, |
|
|
QGraphicsItem * |
parentItem = NULL , |
|
|
bool |
decorate = false |
|
) |
|
|
|
Main constructor.
- Parameters:
-
| parent | GraphicsView parent class |
| glMainWidgte | glMainWidget use by this item |
| width | size on scene |
| height | size of scene |
| parentItem | use this if you want to construct this item with a parent item |
| decorate | true if you want an item with border |
|
tlp::GlMainWidgetItem::~GlMainWidgetItem |
( |
|
) |
|
|
Member Function Documentation
QRectF tlp::GlMainWidgetItem::boundingRect |
( |
|
) |
const |
|
|
Return the boundingRect of this item |
void tlp::GlMainWidgetItem::glMainWidgetDraw |
( |
GlMainWidget * |
, |
|
|
bool |
|
|
) |
[protected, slot] |
|
void tlp::GlMainWidgetItem::glMainWidgetRedraw |
( |
GlMainWidget * |
|
) |
[protected, slot] |
|
void tlp::GlMainWidgetItem::hoverMoveEvent |
( |
QGraphicsSceneHoverEvent * |
event |
) |
[protected] |
|
void tlp::GlMainWidgetItem::mouseDoubleClickEvent |
( |
QGraphicsSceneMouseEvent * |
event |
) |
[protected] |
|
void tlp::GlMainWidgetItem::mouseMoveEvent |
( |
QGraphicsSceneMouseEvent * |
event |
) |
[protected] |
|
void tlp::GlMainWidgetItem::mousePressEvent |
( |
QGraphicsSceneMouseEvent * |
event |
) |
[protected] |
|
void tlp::GlMainWidgetItem::mouseReleaseEvent |
( |
QGraphicsSceneMouseEvent * |
event |
) |
[protected] |
|
void tlp::GlMainWidgetItem::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionGraphicsItem * |
option, |
|
|
QWidget * |
widget |
|
) |
|
|
|
Function use to render this item Function use to render this item. You don't have to call this function, QGraphicsView do this for you.
|
void tlp::GlMainWidgetItem::setHeight |
( |
int |
height |
) |
[inline] |
|
void tlp::GlMainWidgetItem::setRedrawNeed |
( |
bool |
redrawNeed |
) |
[inline] |
|
void tlp::GlMainWidgetItem::setWidth |
( |
int |
width |
) |
[inline] |
|
void tlp::GlMainWidgetItem::wheelEvent |
( |
QGraphicsSceneWheelEvent * |
event |
) |
[protected] |
|
|