ddt 1.2.1
|
#include <ddtGraphicsTextItem.hpp>
Signals | |
void | GraphicsTextItemLostFocus () |
Protected Attributes | |
QBrush | brush |
DdtGraphicsTextItem (QGraphicsItem *parent=nullptr) | |
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override |
void | setBrush (const QBrush in_brush) |
void | focusOutEvent (QFocusEvent *const event) override |
Helper class for graphics text items
DdtGraphicsTextItem::DdtGraphicsTextItem | ( | QGraphicsItem * | parent = nullptr | ) |
Constructor
parent | Pointer to the graphics item. |
|
overrideprotected |
|
signal |
Signal that is emitted to report that the text item has lost its focus.
|
override |
Reimplemented paint method from QGraphicsTextItem
void DdtGraphicsTextItem::setBrush | ( | const QBrush | in_brush | ) |
Sets the brush for the text background
in_brush | QBrush for the background |
|
protected |