9#include <QGraphicsRectItem>
10#include <QGraphicsScene>
11#include <QGraphicsTextItem>
22 QGraphicsScene &scene) :
32 if (m_rect !=
nullptr) {
33 QGraphicsScene *scene = m_rect->scene();
34 scene->removeItem (m_rect);
41void TutorialButton::createRect (QGraphicsScene &scene)
46 m_rect->setPen (QPen (Qt::gray));
47 m_rect->setBrush (QBrush (Qt::white));
49 scene.addItem (m_rect);
52void TutorialButton::createText (
const QString &text)
56 m_text =
new TutorialButtonText (*
this,
80 m_rect->setRect(pos.x(),
86 m_text->setPos (pos.x() + m_rect->boundingRect().width() / 2.0 - m_text->boundingRect().width() / 2.0,
87 pos.y() + m_rect->boundingRect().height() / 2.0 - m_text->boundingRect().height() / 2.0);
log4cpp::Category * mainCat
#define LOG4CPP_INFO_S(logger)