Home | History | Annotate | Download | only in qt

Lines Matching refs:qStyle

97         option.state = QStyle::State_Active | QStyle::State_Enabled;
123 init(paintInfo.context ? paintInfo.context : 0, theme->qStyle());
131 void StylePainter::init(GraphicsContext* context, QStyle* themeStyle)
249 QStyle* RenderThemeQt::fallbackStyle() const
254 QStyle* RenderThemeQt::qStyle() const
340 int RenderThemeQt::findFrameLineWidth(QStyle* style) const
352 return style->pixelMetric(QStyle::PM_DefaultFrameWidth, &opt, widget);
355 static QRect inflateButtonRect(const QRect& originalRect, QStyle* style)
358 option.state |= QStyle::State_Small;
361 QRect layoutRect = style->subElementRect(QStyle::SE_PushButtonLayoutItem, &option, 0);
382 QRect inflatedRect = inflateButtonRect(rect, qStyle());
456 QStyle* style = qStyle();
479 styleOption.state |= QStyle::State_Small;
480 int checkBoxWidth = style->pixelMetric(QStyle::PM_IndicatorWidth, &styleOption);
487 styleOption.state |= QStyle::State_Small;
488 int radioWidth = style->pixelMetric(QStyle::PM_ExclusiveIndicatorWidth, &styleOption);
497 styleOption.state |= QStyle::State_Small;
499 QSize pushButtonSize = style->sizeFromContents(QStyle::CT_PushButton,
502 QRect layoutRect = style->subElementRect(QStyle::SE_PushButtonLayoutItem,
516 styleOption.state |= QStyle::State_Small;
518 QSize menuListSize = style->sizeFromContents(QStyle::CT_ComboBox,
600 styleOption.state |= QStyle::State_Small;
607 int buttonMargin = qStyle()->pixelMetric(QStyle::PM_ButtonMargin, &styleOption, 0);
614 QRect layoutRect = qStyle()->subElementRect(QStyle::SE_PushButtonLayoutItem,
617 QRect contentsRect = qStyle()->subElementRect(QStyle::SE_PushButtonContents,
652 option.state |= QStyle::State_Small;
656 option.rect = inflateButtonRect(option.rect, qStyle());
657 p.drawControl(QStyle::CE_PushButton, option);
659 p.drawControl(QStyle::CE_RadioButton, option);
661 p.drawControl(QStyle::CE_CheckBox, option);
692 panel.lineWidth = findFrameLineWidth(qStyle());
695 panel.state |= QStyle::State_Sunken;
697 panel.state |= QStyle::State_Sunken;
710 p.drawPrimitive(QStyle::PE_PanelLineEdit, panel);
751 int w = qStyle()->pixelMetric(QStyle::PM_ButtonIconSize, &opt, 0);
784 p.drawComplexControl(QStyle::CC_ComboBox, opt);
825 option.subControls = QStyle::SC_ComboBoxArrow;
826 p.drawComplexControl(QStyle::CC_ComboBox, option);
851 return (option.rect.width() / qStyle()->pixelMetric(QStyle::PM_ProgressBarChunkWidth, &option)) * animationRepeatIntervalForProgressBar(renderProgress);
886 p.drawControl(QStyle::CE_ProgressBarGroove, option);
887 int chunkWidth = qStyle()->pixelMetric(QStyle::PM_ProgressBarChunkWidth, &option);
894 p.drawControl(QStyle::CE_ProgressBar, option);
911 option.subControls = QStyle::SC_SliderGroove | QStyle::SC_SliderHandle;
928 value = QStyle::sliderValueFromPosition(0, option.maximum, value, option.maximum);
936 option.activeSubControls = QStyle::SC_SliderHandle;
937 option.state |= QStyle::State_Sunken;
945 p.drawComplexControl(QStyle::CC_Slider, option);
1112 option.state &= ~(QStyle::State_HasFocus | QStyle::State_MouseOver);
1116 option.state |= QStyle::State_ReadOnly;
1121 option.state |= QStyle::State_MouseOver;
1127 option.state &= ~QStyle::State_Enabled;
1136 option.state |= QStyle::State_HasFocus;
1137 option.state |= QStyle::State_KeyboardFocusChange;
1153 option.state |= QStyle::State_Sunken;
1155 option.state |= QStyle::State_Raised;
1160 option.state |= (isChecked(o) ? QStyle::State_On : QStyle::State_Off);
1459 QStyle* style = qStyle();
1461 int width = style->pixelMetric(QStyle::PM_SliderLength, &option);
1462 int height = style->pixelMetric(QStyle::PM_SliderThickness, &option);