コード例 #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__));
}