summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qstylepainter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/styles/qstylepainter.h')
-rw-r--r--src/widgets/styles/qstylepainter.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/widgets/styles/qstylepainter.h b/src/widgets/styles/qstylepainter.h
index b5e7956cb1..a5456af9fd 100644
--- a/src/widgets/styles/qstylepainter.h
+++ b/src/widgets/styles/qstylepainter.h
@@ -59,7 +59,9 @@ public:
Q_ASSERT_X(w, "QStylePainter::QStylePainter", "Widget must be non-zero");
widget = w;
wstyle = w->style();
- return QPainter::begin(pd);
+ const bool res = QPainter::begin(pd);
+ setRenderHint(QPainter::SmoothPixmapTransform);
+ return res;
};
inline void drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption &opt);
inline void drawControl(QStyle::ControlElement ce, const QStyleOption &opt);