Mac: Improve transformed QGraphicsProxyWidgets
Restore Mac code paths from Qt 4. Task-number: QTBUG-29139 Change-Id: I2893ddf6015e2bda92d4a16980dbe2c9021eeef7 Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
This commit is contained in:
parent
bbee8ca485
commit
03b6a2f0f9
@ -2274,7 +2274,7 @@ void QGraphicsWidget::paintWindowFrame(QPainter *painter, const QStyleOptionGrap
|
||||
const QPointF styleOrigin = this->windowFrameRect().topLeft();
|
||||
painter->translate(styleOrigin);
|
||||
|
||||
#ifdef Q_WS_MAC
|
||||
#ifdef Q_OS_MAC
|
||||
const QSize pixmapSize = windowFrameRect.size();
|
||||
if (pixmapSize.width() <= 0 || pixmapSize.height() <= 0)
|
||||
return;
|
||||
@ -2342,7 +2342,7 @@ void QGraphicsWidget::paintWindowFrame(QPainter *painter, const QStyleOptionGrap
|
||||
frameOptions.midLineWidth = 1;
|
||||
style()->drawPrimitive(QStyle::PE_FrameWindow, &frameOptions, painter, widget);
|
||||
|
||||
#ifdef Q_WS_MAC
|
||||
#ifdef Q_OS_MAC
|
||||
realPainter->drawPixmap(QPoint(), pm);
|
||||
delete painter;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user