18#ifndef TITLEBLOCK_SLASH_HELPER_CELL_H
19#define TITLEBLOCK_SLASH_HELPER_CELL_H
28class HelperCell :
public QGraphicsObject,
public QGraphicsLayoutItem {
30 Q_INTERFACES(QGraphicsLayoutItem)
50 QSizeF
sizeHint(Qt::SizeHint,
const QSizeF & = QSizeF())
const override;
52 void paint(QPainter *,
const QStyleOptionGraphicsItem *, QWidget * =
nullptr)
override;
54 virtual void setActions(
const QList<QAction *> &);
55 virtual QList<QAction *>
actions()
const;
56 virtual void setLabel(
const QString &text,
bool =
true);
Definition helpercell.h:28
HelperCell(const HelperCell &)
void contextMenuEvent(QGraphicsSceneContextMenuEvent *) override
Definition helpercell.cpp:140
void contextMenuTriggered(HelperCell *)
int index
Index of this cell.
Definition helpercell.h:45
Qt::Orientation orientation
Orientation of this cell.
Definition helpercell.h:44
QRectF boundingRect() const override
Definition helpercell.cpp:69
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *) override
Definition helpercell.cpp:154
void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *=nullptr) override
Definition helpercell.cpp:80
void setGeometry(const QRectF &) override
Definition helpercell.cpp:49
virtual QList< QAction * > actions() const
Definition helpercell.cpp:120
QList< QAction * > actions_
List of actions displayed by the context menu.
Definition helpercell.h:67
QSizeF sizeHint(Qt::SizeHint, const QSizeF &=QSizeF()) const override
Definition helpercell.cpp:60
virtual void setActions(const QList< QAction * > &)
Definition helpercell.cpp:113
void doubleClicked(HelperCell *)
~HelperCell() override
Definition helpercell.cpp:40
virtual void setType(QET::TitleBlockColumnLength)
Definition helpercell.cpp:97
QColor foreground_color
Text color when rendering this cell.
Definition helpercell.h:42
QString label
Label displayed in this cell.
Definition helpercell.h:43
QColor background_color
Background color when rendering this cell.
Definition helpercell.h:41
virtual void setLabel(const QString &text, bool=true)
Definition helpercell.cpp:129
TitleBlockColumnLength
enum used to specify the type of a length
Definition qet.h:141