Пример #1
0
 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);
 }
Пример #2
0
LetterItem::LetterItem(char letter, QGraphicsScene *scene, QGraphicsItem *parent) : DemoItem(scene, parent), letter(letter)
{
    useSharedImage(QString(__FILE__) + letter);
}
Пример #3
0
ScanItem::ScanItem(QGraphicsScene *scene, QGraphicsItem *parent)
    : DemoItem(scene, parent)
{
    useSharedImage(QString(__FILE__));
}