QElectroTech 0.100.0-dev
|
#include <splittedhelpercell.h>
Public Member Functions | |
SplittedHelperCell (QGraphicsItem *=nullptr) | |
~SplittedHelperCell () override | |
void | paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *=nullptr) override |
Public Member Functions inherited from HelperCell | |
HelperCell (QGraphicsItem *=nullptr) | |
~HelperCell () override | |
void | setGeometry (const QRectF &) override |
QSizeF | sizeHint (Qt::SizeHint, const QSizeF &=QSizeF()) const override |
QRectF | boundingRect () const override |
void | paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *=nullptr) override |
virtual void | setType (QET::TitleBlockColumnLength) |
virtual void | setActions (const QList< QAction * > &) |
virtual QList< QAction * > | actions () const |
virtual void | setLabel (const QString &text, bool=true) |
Public Attributes | |
QColor | split_background_color |
Background color on the split side. | |
QColor | split_foreground_color |
Text color on the split side. | |
QString | split_label |
Text displayed on the split side. | |
int | split_size |
Length of the split side. | |
Public Attributes inherited from HelperCell | |
QColor | background_color |
Background color when rendering this cell. | |
QColor | foreground_color |
Text color when rendering this cell. | |
QString | label |
Label displayed in this cell. | |
Qt::Orientation | orientation |
Orientation of this cell. | |
int | index |
Index of this cell. | |
Private Member Functions | |
SplittedHelperCell (const SplittedHelperCell &) | |
Additional Inherited Members | |
Signals inherited from HelperCell | |
void | contextMenuTriggered (HelperCell *) |
void | doubleClicked (HelperCell *) |
Protected Member Functions inherited from HelperCell | |
void | contextMenuEvent (QGraphicsSceneContextMenuEvent *) override |
void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *) override |
This class is a variant of HelperCell having the ability to display two labels, with a split line between them.
SplittedHelperCell::SplittedHelperCell | ( | QGraphicsItem * | parent = nullptr | ) |
Constructor
parent | Parent QGraphicsItem |
|
override |
Destructor
|
private |
|
override |
Handles the splitted helper cell visual rendering
painter | QPainter to be used for the rendering |
option | Rendering options |
widget | QWidget being painted, if any |
QColor SplittedHelperCell::split_background_color |
Background color on the split side.
QColor SplittedHelperCell::split_foreground_color |
Text color on the split side.
QString SplittedHelperCell::split_label |
Text displayed on the split side.
int SplittedHelperCell::split_size |
Length of the split side.