QTfrontend/mapContainer.cpp
changeset 216 8d75c9ec9a78
parent 184 f97a7a3dc8f6
child 249 ff85fa029541
equal deleted inserted replaced
215:a0774085e20b 216:8d75c9ec9a78
    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);