| 226 | } |
| 227 | |
| 228 | void Util::drawTransparencyPattern(QPainter *painter, const QRect &rect, int squareSize) |
| 229 | { |
| 230 | QPixmap bgPattern(2 * squareSize, 2 * squareSize); |
| 231 | bgPattern.fill(Qt::lightGray); |
| 232 | QPainter bgPainter(&bgPattern); |
| 233 | bgPainter.fillRect(squareSize, 0, squareSize, squareSize, Qt::gray); |
| 234 | bgPainter.fillRect(0, squareSize, squareSize, squareSize, Qt::gray); |
| 235 | |
| 236 | QBrush bgBrush; |
| 237 | bgBrush.setTexture(bgPattern); |
| 238 | painter->fillRect(rect, bgBrush); |
| 239 | } |
| 240 | |
| 241 | int Util::signalIndexToMethodIndex(const QMetaObject *metaObject, int signalIndex) |
| 242 | { |