diff --git qt5/style/qtcurve.cpp qt5/style/qtcurve.cpp
index febcfcf..1e17882 100644
|
|
void Style::drawLines(QPainter *p, const QRect &r, bool horiz, int nLines, int o |
1280 | 1277 | drawAaLine(p, x+i, y+offset, x+i, y2-offset); |
1281 | 1278 | } |
1282 | 1279 | } |
1283 | | p->setRenderHint(QPainter::Antialiasing, false); |
| 1280 | p->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
1284 | 1281 | } |
1285 | 1282 | |
1286 | 1283 | void Style::drawProgressBevelGradient(QPainter *p, const QRect &origRect, const QStyleOption *option, bool horiz, EAppearance bevApp, |
… |
… |
Style::drawLightBevelReal(QPainter *p, const QRect &rOrig, |
1914 | 1911 | } |
1915 | 1912 | if(plastikMouseOver && (!sunken || sunkenToggleMo)) |
1916 | 1913 | p->restore(); |
1917 | | p->setRenderHint(QPainter::Antialiasing, false); |
| 1914 | p->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
1918 | 1915 | |
1919 | 1916 | if(doEtch || glowFocus) |
1920 | 1917 | { |
… |
… |
void Style::drawGlow(QPainter *p, const QRect &r, EWidget w, const QColor *cols) |
1972 | 1969 | p->setRenderHint(QPainter::Antialiasing, true); |
1973 | 1970 | p->setPen(col); |
1974 | 1971 | p->drawPath(buildPath(r, w, ROUNDED_ALL, qtcGetRadius(&opts, r.width(), r.height(), w, RADIUS_ETCH))); |
1975 | | p->setRenderHint(QPainter::Antialiasing, false); |
| 1972 | p->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
1976 | 1973 | } |
1977 | 1974 | |
1978 | 1975 | void Style::drawEtch(QPainter *p, const QRect &r, const QWidget *widget, EWidget w, bool raised, int round) const |
… |
… |
void Style::drawEtch(QPainter *p, const QRect &r, const QWidget *widget, EWidge |
2005 | 2002 | } |
2006 | 2003 | |
2007 | 2004 | p->drawPath(br); |
2008 | | p->setRenderHint(QPainter::Antialiasing, false); |
| 2005 | p->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
2009 | 2006 | } |
2010 | 2007 | |
2011 | 2008 | void Style::drawBgndRing(QPainter &painter, int x, int y, int size, int size2, bool isWindow) const |
… |
… |
Style::drawBorder(QPainter *p, const QRect &r, const QStyleOption *option, |
2601 | 2598 | p->drawPath(buildPath(r, w, round, qtcGetRadius(&opts, r.width(), r.height(), w, RADIUS_EXTERNAL))); |
2602 | 2599 | } |
2603 | 2600 | |
2604 | | p->setRenderHint(QPainter::Antialiasing, false); |
| 2601 | p->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
2605 | 2602 | } |
2606 | 2603 | |
2607 | 2604 | void Style::drawMdiControl(QPainter *p, const QStyleOptionTitleBar *titleBar, SubControl sc, const QWidget *widget, |
… |
… |
void Style::drawEntryField(QPainter *p, const QRect &rx, const QWidget *widget, |
2840 | 2837 | p->drawPath(buildPath(r.adjusted(1, 1, -1, -1), WIDGET_SCROLLVIEW==w ? w : WIDGET_ENTRY, round, |
2841 | 2838 | qtcGetRadius(&opts, r.width()-2, r.height()-2, WIDGET_SCROLLVIEW==w ? w : WIDGET_ENTRY, RADIUS_INTERNAL))); |
2842 | 2839 | } |
2843 | | p->setRenderHint(QPainter::Antialiasing, false); |
| 2840 | p->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
2844 | 2841 | |
2845 | 2842 | if(doEtch && opts.etchEntry) |
2846 | 2843 | drawEtch(p, rx, widget, WIDGET_SCROLLVIEW==w ? w : WIDGET_ENTRY, false); |
… |
… |
void Style::drawSliderHandle(QPainter *p, const QRect &r, const QStyleOptionSlid |
3260 | 3257 | path.lineTo(xd+10, yd+9); |
3261 | 3258 | path.arcTo(xd+10-diameter, yd, diameter, diameter, 0, 90); |
3262 | 3259 | p->drawPath(path); |
3263 | | p->setRenderHint(QPainter::Antialiasing, false); |
| 3260 | p->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
3264 | 3261 | if(drawLight) |
3265 | 3262 | { |
3266 | 3263 | p->setPen(use[APPEARANCE_DULL_GLASS==opts.sliderAppearance ? 1 : 0]); |
… |
… |
void Style::drawSliderHandle(QPainter *p, const QRect &r, const QStyleOptionSlid |
3289 | 3286 | path.lineTo(xd+5, yd); |
3290 | 3287 | path.lineTo(xd, yd+5); |
3291 | 3288 | p->drawPath(path); |
3292 | | p->setRenderHint(QPainter::Antialiasing, false); |
| 3289 | p->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
3293 | 3290 | if(drawLight) |
3294 | 3291 | { |
3295 | 3292 | p->setPen(use[APPEARANCE_DULL_GLASS==opts.sliderAppearance ? 1 : 0]); |
… |
… |
void Style::drawSliderHandle(QPainter *p, const QRect &r, const QStyleOptionSlid |
3318 | 3315 | path.lineTo(xd, yd+5); |
3319 | 3316 | path.lineTo(xd+5, yd+10); |
3320 | 3317 | p->drawPath(path); |
3321 | | p->setRenderHint(QPainter::Antialiasing, false); |
| 3318 | p->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
3322 | 3319 | if(drawLight) |
3323 | 3320 | { |
3324 | 3321 | p->setPen(use[APPEARANCE_DULL_GLASS==opts.sliderAppearance ? 1 : 0]); |
… |
… |
void Style::drawSliderHandle(QPainter *p, const QRect &r, const QStyleOptionSlid |
3347 | 3344 | path.lineTo(xd+14, yd+5); |
3348 | 3345 | path.lineTo(xd+9, yd); |
3349 | 3346 | p->drawPath(path); |
3350 | | p->setRenderHint(QPainter::Antialiasing, false); |
| 3347 | p->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
3351 | 3348 | if(drawLight) |
3352 | 3349 | { |
3353 | 3350 | p->setPen(use[APPEARANCE_DULL_GLASS==opts.sliderAppearance ? 1 : 0]); |
diff --git qt5/style/qtcurve_api.cpp qt5/style/qtcurve_api.cpp
index 87a927f..f418d10 100644
|
|
bool Style::eventFilter(QObject *object, QEvent *event) |
1145 | 1160 | p.setRenderHint(QPainter::Antialiasing, true); |
1146 | 1161 | p.setPen(use[ORIGINAL_SHADE]); |
1147 | 1162 | p.drawPath(buildPath(r, WIDGET_OTHER, ROUNDED_ALL, radius)); |
1148 | | p.setRenderHint(QPainter::Antialiasing, false); |
| 1163 | p.setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
1149 | 1164 | } |
1150 | 1165 | if (!(opts.square&SQUARE_POPUP_MENUS)) |
1151 | 1166 | p.setClipRegion(windowMask(r, opts.round>ROUND_SLIGHT), |
… |
… |
Style::drawControl(ControlElement element, const QStyleOption *option, |
2120 | 2130 | painter->translate(0, -1); |
2121 | 2131 | painter->setPen(use[4]); |
2122 | 2132 | painter->drawPath(path); |
2123 | | painter->setRenderHint(QPainter::Antialiasing, false); |
| 2133 | painter->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
2124 | 2134 | if (reverse) { |
2125 | 2135 | painter->drawLine(r.left() + 50 - 1, r.top(), r.right(), r.top()); |
2126 | 2136 | painter->drawLine(r.left() + 20, r.bottom() - 2, |
… |
… |
Style::drawControl(ControlElement element, const QStyleOption *option, |
2513 | 2523 | drawAaLine(painter, r.x() + r.width() - 1, r.y(), |
2514 | 2524 | r.x() + r.width() - 1, r.y() + r.height() - 1); |
2515 | 2525 | } |
2516 | | painter->setRenderHint(QPainter::Antialiasing, false); |
| 2526 | painter->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
2517 | 2527 | painter->restore(); |
2518 | 2528 | break; |
2519 | 2529 | } |
… |
… |
Style::drawControl(ControlElement element, const QStyleOption *option, |
2604 | 2614 | r.width(), 2), true, true); |
2605 | 2615 | } |
2606 | 2616 | } |
2607 | | painter->setRenderHint(QPainter::Antialiasing, false); |
| 2617 | painter->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
2608 | 2618 | } else if (!qtcIsFlat(opts.lvAppearance) && !reverse && |
2609 | 2619 | ((State_Enabled | State_Active) == state || |
2610 | 2620 | State_Enabled == state)) { |
… |
… |
Style::drawControl(ControlElement element, const QStyleOption *option, |
3683 | 3699 | col.setAlphaF(0.5); |
3684 | 3700 | painter->setPen(col); |
3685 | 3701 | drawAaLine(painter, r.left()+1, r.top()+2, r.right()-1, r.top()+2); |
3686 | | painter->setRenderHint(QPainter::Antialiasing, false); |
| 3702 | painter->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
3687 | 3703 | painter->setClipRect(QRect(r.x(), r.y(), r.width(), highlightBorder)); |
3688 | 3704 | drawBorder(painter, r, option, ROUNDED_ALL, m_highlightCols, WIDGET_TAB_TOP, BORDER_FLAT, false, 3); |
3689 | 3705 | } |
… |
… |
Style::drawControl(ControlElement element, const QStyleOption *option, |
3768 | 3784 | col.setAlphaF(0.5); |
3769 | 3785 | painter->setPen(col); |
3770 | 3786 | drawAaLine(painter, r.left()+1, r.bottom()-2, r.right()-1, r.bottom()-2); |
3771 | | painter->setRenderHint(QPainter::Antialiasing, false); |
| 3787 | painter->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
3772 | 3788 | painter->setClipRect(QRect(r.x(), r.y()+r.height()-highlightBorder, r.width(), r.y()+r.height()-1)); |
3773 | 3789 | drawBorder(painter, r, option, ROUNDED_ALL, m_highlightCols, WIDGET_TAB_BOT, BORDER_FLAT, false, 3); |
3774 | 3790 | } |
… |
… |
Style::drawControl(ControlElement element, const QStyleOption *option, |
3846 | 3862 | col.setAlphaF(0.5); |
3847 | 3863 | painter->setPen(col); |
3848 | 3864 | drawAaLine(painter, r.left()+2, r.top()+1, r.left()+2, r.bottom()-1); |
3849 | | painter->setRenderHint(QPainter::Antialiasing, false); |
| 3865 | painter->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
3850 | 3866 | painter->setClipRect(QRect(r.x(), r.y(), highlightBorder, r.height())); |
3851 | 3867 | drawBorder(painter, r, option, ROUNDED_ALL, m_highlightCols, WIDGET_TAB_TOP, BORDER_FLAT, false, 3); |
3852 | 3868 | } |
… |
… |
Style::drawControl(ControlElement element, const QStyleOption *option, |
3924 | 3940 | col.setAlphaF(0.5); |
3925 | 3941 | painter->setPen(col); |
3926 | 3942 | drawAaLine(painter, r.right()-2, r.top()+1, r.right()-2, r.bottom()-1); |
3927 | | painter->setRenderHint(QPainter::Antialiasing, false); |
| 3943 | painter->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
3928 | 3944 | painter->setClipRect(QRect(r.x()+r.width()-highlightBorder, r.y(), r.x()+r.width()-1, r.height())); |
3929 | 3945 | drawBorder(painter, r, option, ROUNDED_ALL, m_highlightCols, WIDGET_TAB_TOP, BORDER_FLAT, false, 3); |
3930 | 3946 | } |
… |
… |
void Style::drawComplexControl(ComplexControl control, const QStyleOptionComplex |
5254 | 5270 | ? 6.0 |
5255 | 5271 | : 2.0)); |
5256 | 5272 | |
5257 | | painter->setRenderHint(QPainter::Antialiasing, false); |
| 5273 | painter->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
5258 | 5274 | |
5259 | 5275 | if(addLight) |
5260 | 5276 | { |
… |
… |
void Style::drawComplexControl(ComplexControl control, const QStyleOptionComplex |
5307 | 5323 | } |
5308 | 5324 | } |
5309 | 5325 | else |
5310 | | painter->setRenderHint(QPainter::Antialiasing, false); |
| 5326 | painter->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
5311 | 5327 | |
5312 | 5328 | if(kwin) |
5313 | 5329 | { |
diff --git qt5/style/qtcurve_p.h qt5/style/qtcurve_p.h
index bfc7502..6f2ee31 100644
|
|
bool isA(const QObject *w, const char *type); |
283 | 286 | |
284 | 287 | } |
285 | 288 | |
| 289 | #define QPAINTER_ANTIALIAS_MAYBE_ON true |
| 290 | |
286 | 291 | #endif |
diff --git qt5/style/qtcurve_primitive.cpp qt5/style/qtcurve_primitive.cpp
index b5a3204..c014df8 100644
|
|
Style::drawPrimitiveFrame(PrimitiveElement, |
555 | 560 | 0 : QTC_STD_BORDER]; |
556 | 561 | } |
557 | 562 | border.setAlphaF(1.0); |
558 | | painter->setRenderHint(QPainter::Antialiasing, false); |
| 563 | painter->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
559 | 564 | painter->setPen(border); |
560 | 565 | drawRect(painter, r); |
561 | 566 | } else { |
… |
… |
Style::drawPrimitiveFrame(PrimitiveElement, |
648 | 653 | r.height() - 2, |
649 | 654 | WIDGET_SCROLLVIEW, |
650 | 655 | RADIUS_INTERNAL))); |
651 | | painter->setRenderHint(QPainter::Antialiasing, false); |
| 656 | painter->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
652 | 657 | } |
653 | 658 | drawBorder(painter, r, &opt, |
654 | 659 | opts.round ? getFrameRound(widget) : ROUND_NONE, |
… |
… |
Style::drawPrimitiveFrameWindow(PrimitiveElement, |
1042 | 1047 | } |
1043 | 1048 | if (opts.round < ROUND_SLIGHT || !isKWin || |
1044 | 1049 | (state & QtC_StateKWinNotFull && state & QtC_StateKWin)) { |
1045 | | painter->setRenderHint(QPainter::Antialiasing, false); |
| 1050 | painter->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
1046 | 1051 | if (addLight) { |
1047 | 1052 | painter->setPen(light); |
1048 | 1053 | painter->drawLine(r.x() + 1, r.y(), r.x() + 1, |
… |
… |
Style::drawPrimitiveFrameWindow(PrimitiveElement, |
1052 | 1057 | drawRect(painter, r); |
1053 | 1058 | } else { |
1054 | 1059 | if (addLight) { |
1055 | | painter->setRenderHint(QPainter::Antialiasing, false); |
| 1060 | painter->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
1056 | 1061 | painter->setPen(light); |
1057 | 1062 | painter->drawLine(r.x() + 1, r.y(), r.x() + 1, |
1058 | 1063 | r.y() + r.height() - |
… |
… |
Style::drawPrimitiveFrameWindow(PrimitiveElement, |
1068 | 1073 | QColor col(opts.windowBorder & WINDOW_BORDER_COLOR_TITLEBAR_ONLY ? |
1069 | 1074 | backgroundColors(option)[QTC_STD_BORDER] : |
1070 | 1075 | buttonColors(option)[QTC_STD_BORDER]); |
1071 | | painter->setRenderHint(QPainter::Antialiasing, false); |
| 1076 | painter->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
1072 | 1077 | painter->setPen(col); |
1073 | 1078 | painter->drawPoint(r.x() + 2, r.y() + r.height() - 3); |
1074 | 1079 | painter->drawPoint(r.x() + r.width() - 3, r.y() + r.height() - 3); |
… |
… |
Style::drawPrimitiveButton(PrimitiveElement element, const QStyleOption *option, |
1232 | 1237 | painter->setPen(cols[isDown ? 0 : 4]); |
1233 | 1238 | painter->setRenderHint(QPainter::Antialiasing, true); |
1234 | 1239 | painter->drawPath(path); |
1235 | | painter->setRenderHint(QPainter::Antialiasing, false); |
| 1240 | painter->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
1236 | 1241 | break; |
1237 | 1242 | } |
1238 | 1243 | case IND_COLORED: { |
… |
… |
Style::drawPrimitivePanelMenu(PrimitiveElement, const QStyleOption *option, |
1262 | 1267 | painter->setRenderHint(QPainter::Antialiasing, true); |
1263 | 1268 | painter->setPen(use[ORIGINAL_SHADE]); |
1264 | 1269 | painter->drawPath(buildPath(r, WIDGET_OTHER, ROUNDED_ALL, radius)); |
1265 | | painter->setRenderHint(QPainter::Antialiasing, false); |
| 1270 | painter->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
1266 | 1271 | } |
1267 | 1272 | if (!(opts.square & SQUARE_POPUP_MENUS)) { |
1268 | 1273 | painter->setClipRegion(windowMask(r, opts.round > ROUND_SLIGHT), |
… |
… |
Style::drawPrimitiveIndicatorCheckBox(PrimitiveElement element, |
1718 | 1723 | painter->setRenderHint(QPainter::Antialiasing, true); |
1719 | 1724 | painter->setPen(use[CR_MO_FILL]); |
1720 | 1725 | drawAaRect(painter, rect.adjusted(1, 1, -1, -1)); |
1721 | | painter->setRenderHint(QPainter::Antialiasing, false); |
| 1726 | painter->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
1722 | 1727 | } else { |
1723 | 1728 | painter->setPen(midColor(state & State_Enabled ? |
1724 | 1729 | palette.base().color() : |
diff --git qt5/style/qtcurve_utils.cpp qt5/style/qtcurve_utils.cpp
index ac516bf..b51db33 100644
|
|
drawDots(QPainter *p, const QRect &r, bool horiz, int nLines, int offset, |
341 | 341 | for(j=0; j<numDots; j++) |
342 | 342 | drawAaPoint(p, x+i, y+offset+1+(3*j)); |
343 | 343 | } |
344 | | p->setRenderHint(QPainter::Antialiasing, false); |
| 344 | p->setRenderHint(QPainter::Antialiasing, QPAINTER_ANTIALIAS_MAYBE_ON); |
345 | 345 | } |
346 | 346 | |
347 | 347 | bool |