7#include <QGraphicsPixmapItem>
8#include <QGraphicsScene>
9#include <QGraphicsTextItem>
40 QGraphicsPixmapItem *item =
new QGraphicsPixmapItem (QPixmap (resource));
50 QGraphicsTextItem *item =
new QGraphicsTextItem (text);
61 QGraphicsTextItem *item =
new QGraphicsTextItem (text);
63 item->setPos (backgroundSize.width() / 2.0 - item->boundingRect().width() / 2.0,
68 QFont font = item->font();
QGraphicsScene & scene()
Single scene the covers the entire tutorial dialog.
QSize backgroundSize() const
Make geometry available for layout.
virtual ~TutorialStateAbstractBase()
TutorialStateAbstractBase(TutorialStateContext &context)
Single constructor.
QGraphicsTextItem * createTitle(const QString &text)
Factory method for title items.
QGraphicsTextItem * createTextItem(const QString &text, const QPoint &pos)
Factory method for text items.
TutorialStateContext & context()
Context class for the tutorial state machine.
QGraphicsPixmapItem * createPixmapItem(const QString &resource, const QPoint &pos)
Factory method for pixmap items.
int buttonMargin() const
Buttons are placed up against bottom side, and left or right side, separated by this margin.
Context class for tutorial state machine.
TutorialDlg & tutorialDlg()
Access to tutorial dialogs and its scene.