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 8243ff5f39..65664b776e 100644
--- a/src/widgets/styles/qstylepainter.h
+++ b/src/widgets/styles/qstylepainter.h
@@ -23,7 +23,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);