equal
deleted
inserted
replaced
47 px.fill(Qt::yellow); |
47 px.fill(Qt::yellow); |
48 QBitmap bm = QBitmap::fromImage(newImage); |
48 QBitmap bm = QBitmap::fromImage(newImage); |
49 px.setMask(bm); |
49 px.setMask(bm); |
50 |
50 |
51 QLinearGradient linearGrad(QPoint(128, 0), QPoint(128, 128)); |
51 QLinearGradient linearGrad(QPoint(128, 0), QPoint(128, 128)); |
52 linearGrad.setColorAt(0, QColor(0, 0, 192)); |
52 linearGrad.setColorAt(1, QColor(0, 0, 192)); |
53 linearGrad.setColorAt(1, QColor(0, 0, 64)); |
53 linearGrad.setColorAt(0, QColor(66, 115, 225)); |
54 p.fillRect(QRect(0, 0, 256, 128), linearGrad); |
54 p.fillRect(QRect(0, 0, 256, 128), linearGrad); |
55 p.drawPixmap(QPoint(0, 0), px); |
55 p.drawPixmap(QPoint(0, 0), px); |
56 |
56 |
57 |
57 |
58 imageButt->setIcon(pxres); |
58 imageButt->setIcon(pxres); |