summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2017-01-25 09:27:20 (GMT)
committerLiang Qi <liang.qi@qt.io>2017-01-25 09:27:20 (GMT)
commit21d2f50f6d84be5dc006135ea726e9d34d47b0e4 (patch)
treef23739f9cfdcc598511cfff6bad36090620a0664
parent4bd5d6ced07d2d0e643a13e7cebb228c521d2046 (diff)
parent5f5b5f58a976825c883a772d19beac21aaf4dd1d (diff)
downloadqtsvg-21d2f50f6d84be5dc006135ea726e9d34d47b0e4.tar.gz
Merge remote-tracking branch 'origin/5.8' into dev
Conflicts: .qmake.conf Change-Id: I4965154ceaebc75fa968417f3cba47582574a01d
-rw-r--r--src/svg/qsvgwidget.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/svg/qsvgwidget.cpp b/src/svg/qsvgwidget.cpp
index 3881484..4b86306 100644
--- a/src/svg/qsvgwidget.cpp
+++ b/src/svg/qsvgwidget.cpp
@@ -43,6 +43,7 @@
#include "qsvgrenderer.h"
+#include "qstyleoption.h"
#include "qpainter.h"
#include "private/qwidget_p.h"
@@ -145,7 +146,10 @@ QSize QSvgWidget::sizeHint() const
void QSvgWidget::paintEvent(QPaintEvent *)
{
Q_D(QSvgWidget);
+ QStyleOption opt;
+ opt.init(this);
QPainter p(this);
+ style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
d->renderer->render(&p);
}