268269270271272273274275276277278
colorTile(painter, x, y, offset, color); } } } painter.end(); } public void drawBackground(QPainter painter, QRectF rect){ super.drawBackground(painter, rect); painter.drawImage(0, 0, qImage);
149150151152153154155156157158159
painter.fillRect(j * tileSize, i * tileSize, tileSize - 2, tileSize - 2, new QBrush(color)); } } painter.end(); } public void drawBackground(QPainter painter, QRectF rect){ super.drawBackground(painter, rect);
264265266267268269270271272273274
} } } } } p2.end(); // Paint the hilight onto the background. p.setOpacity(0.4); p.drawPixmap(0,0, overlayPix); p.end();
32653266326732683269327032713272327332743275
angle = angle+1.0; p.rotate(angle); p.setBackgroundMode(BGMode.OpaqueMode); p.translate(-size.width()/2, -size.height()/2); p.drawPixmap(0,0, pix); p.end(); syncIcons.add(rotatedPix); } } synchronizeIconAngle++;