18 #ifndef TITLEBLOCK_SLASH_HELPER_CELL_H 19 #define TITLEBLOCK_SLASH_HELPER_CELL_H 27 class HelperCell :
public QGraphicsObject,
public QGraphicsLayoutItem {
29 Q_INTERFACES(QGraphicsLayoutItem)
49 QSizeF
sizeHint(Qt::SizeHint,
const QSizeF & = QSizeF())
const override;
51 void paint(QPainter *,
const QStyleOptionGraphicsItem *, QWidget * =
nullptr)
override;
53 virtual void setActions(
const QList<QAction *> &);
54 virtual QList<QAction *>
actions()
const;
55 virtual void setLabel(
const QString &text,
bool =
true);
QSizeF sizeHint(Qt::SizeHint, const QSizeF &=QSizeF()) const override
TitleBlockColumnLength
enum used to specify the type of a length
void contextMenuTriggered(HelperCell *)
QColor background_color
Background color when rendering this cell.
int index
Index of this cell.
virtual QList< QAction * > actions() const
void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *=nullptr) override
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *) override
QRectF boundingRect() const override
virtual void setActions(const QList< QAction *> &)
virtual void setType(QET::TitleBlockColumnLength)
Qt::Orientation orientation
Orientation of this cell.
QColor foreground_color
Text color when rendering this cell.
virtual void setLabel(const QString &text, bool=true)
HelperCell(QGraphicsItem *=nullptr)
void doubleClicked(HelperCell *)
void contextMenuEvent(QGraphicsSceneContextMenuEvent *) override
void setGeometry(const QRectF &) override
QString label
Label displayed in this cell.
QList< QAction * > actions_
List of actions displayed by the context menu.