예제 #1
0
파일: textbutton.cpp 프로젝트: BGmot/Qt
 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.cpp 프로젝트: Fale/qtmoko
ScanItem::ScanItem(QGraphicsScene *scene, QGraphicsItem *parent)
    : DemoItem(scene, parent)
{
    useSharedImage(QString(__FILE__));
}