Home | History | Annotate | Download | only in qt

Lines Matching refs:painter

33 static inline void drawRectangularControlBackground(QPainter* painter, const QPen& pen, const QRect& rect, const QBrush& brush)
35 QPen oldPen = painter->pen();
36 QBrush oldBrush = painter->brush();
37 painter->setRenderHint(QPainter::Antialiasing, true);
38 painter->setPen(pen);
39 painter->setBrush(brush);
42 painter->drawRoundedRect(rect.adjusted(line, line, -line, -line),
44 painter->setPen(oldPen);
45 painter->setBrush(oldBrush);
48 void QtMobileWebStyle::drawChecker(QPainter* painter, int size, QColor color) const
57 painter->setPen(color);
68 painter->drawLines(lines.constData(), lines.size());
80 QPainter painter(&result);
81 drawChecker(&painter, size, disabled ? Qt::lightGray : Qt::darkGray);
87 void QtMobileWebStyle::drawRadio(QPainter* painter, const QSize& size, bool checked, QColor color) const
89 painter->setRenderHint(QPainter::Antialiasing, true);
102 painter->setPen(color);
103 painter->setBrush(color);
104 painter->drawEllipse(rect);
105 painter->setBrush(radialGradient);
106 painter->drawEllipse(rect);
112 painter->setPen(Qt::NoPen);
113 painter->setBrush(color);
114 painter->drawEllipse(rect);
127 QPainter painter(&result);
128 drawRadio(&painter, size, checked, disabled ? Qt::lightGray : Qt::darkGray);
134 void QtMobileWebStyle::drawControl(ControlElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget) const
150 painter->setPen(QPen(disabled ? Qt::lightGray : Qt::darkGray));
151 painter->setBrush(linearGradient);
152 painter->drawRect(rect);
164 painter->drawPixmap(rect.x() + x, rect.y() + y, checker);
172 painter->drawPixmap(option->rect.x(), option->rect.y(), radio);
179 painter->setPen(pen);
183 drawRectangularControlBackground(painter, pen, rect, QBrush(Qt::darkGray));
201 drawRectangularControlBackground(painter, pen, rect, linearGradient);
205 QWindowsStyle::drawControl(element, option, painter, widget);
208 void QtMobileWebStyle::drawPrimitive(PrimitiveElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget) const
216 painter->setPen(pen);
219 drawRectangularControlBackground(painter, pen, rect, QBrush(Qt::darkGray));
237 drawRectangularControlBackground(painter, pen, rect, linearGradient);
241 QWindowsStyle::drawPrimitive(element, option, painter, widget);
245 void QtMobileWebStyle::drawMultipleComboButton(QPainter* painter, const QSize& size, QColor color) const
252 painter->setPen(color);
253 painter->setBrush(color);
255 painter->drawRect(0, top, width, width);
256 painter->drawRect(width + distance, top, width, width);
257 painter->drawRect(2 * (width + distance), top, width, width);
260 void QtMobileWebStyle::drawSimpleComboButton(QPainter* painter, const QSize& size, QColor color) const
273 painter->setPen(color);
274 painter->setBrush(color);
275 painter->drawLines(lines);
310 QPainter painter(&result);
312 drawMultipleComboButton(&painter, imageSize, disabled ? Qt::lightGray : Qt::darkGray);
314 drawSimpleComboButton(&painter, imageSize, disabled ? Qt::lightGray : Qt::darkGray);
320 void QtMobileWebStyle::drawComplexControl(ComplexControl control, const QStyleOptionComplex* option, QPainter* painter, const QWidget* widget) const
337 QWindowsStyle::drawComplexControl(control, option, painter, widget);
360 drawRectangularControlBackground(painter, pen, rect, linearGradient);
370 painter->drawPixmap(rect.x() + x, rect.y() + y, pic);
372 painter->setPen(disabled ? Qt::gray : Qt::darkGray);
373 painter->drawLine(rect.left() - 2, rect.top() + 2, rect.left() - 2, rect.bottom() - 2);
378 QWindowsStyle::drawComplexControl(control, option, painter, widget);