ButtonBackground(TextButton::BUTTONTYPE type, bool highlighted, bool pressed, QSize logicalSize, QGraphicsScene *scene, QGraphicsItem *parent) : DemoItem(scene, parent) { this->type = type; this->highlighted = highlighted; this->pressed = pressed; this->logicalSize = logicalSize; useSharedImage(QString(__FILE__) + static_cast<int>(type) + highlighted + pressed); }
LetterItem::LetterItem(char letter, QGraphicsScene *scene, QGraphicsItem *parent) : DemoItem(scene, parent), letter(letter) { useSharedImage(QString(__FILE__) + letter); }
ScanItem::ScanItem(QGraphicsScene *scene, QGraphicsItem *parent) : DemoItem(scene, parent) { useSharedImage(QString(__FILE__)); }