ddt  0.1
Public Member Functions | Protected Attributes | List of all members
DdtGraphicsTextItem Class Reference

#include <ddtGraphicsTextItem.hpp>

Inheritance diagram for DdtGraphicsTextItem:

Public Member Functions

 DdtGraphicsTextItem (QGraphicsItem *parent=nullptr)
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
 
void setBrush (const QBrush in_brush)
 

Protected Attributes

QBrush brush
 

Constructor & Destructor Documentation

◆ DdtGraphicsTextItem()

DdtGraphicsTextItem::DdtGraphicsTextItem ( QGraphicsItem *  parent = nullptr)

Constructor

Member Function Documentation

◆ paint()

void DdtGraphicsTextItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)

Reimplemented paint method from QGraphicsTextItem

◆ setBrush()

void DdtGraphicsTextItem::setBrush ( const QBrush  in_brush)

Sets the brush for the text background

Parameters
in_brushQBrush for the background

Member Data Documentation

◆ brush

QBrush DdtGraphicsTextItem::brush
protected

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