Commit 2197a64d authored by Christoph Feck's avatar Christoph Feck

Merge remote-tracking branch 'origin/Applications/17.04'

parents 14961f08 60459d77
......@@ -379,9 +379,16 @@ void KMagZoomView::paintMouseCursor(QPaintDevice *dev, const QPoint &mousePos)
pz.setPen(Qt::black);
pz.setBackground(Qt::white);
QBitmap sCursor = QBitmap::fromData( QSize(16, 16), left_ptr_bits);
QPixmap sCursor(16, 16);
QBitmap cursor = QBitmap::fromData( QSize(16, 16), left_ptr_bits);
QBitmap mask = QBitmap::fromData( QSize(16, 16), left_ptrmsk_bits);
sCursor.setMask(mask);
QPainter p(&sCursor);
p.setPen(Qt::gray);
p.drawPixmap(0, 0, mask);
p.setPen(Qt::black);
p.drawPixmap(0, 0, cursor);
p.end();
sCursor = sCursor.transformed(m_zoomMatrix);
// since hot spot is at 3,1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment