Lines Matching refs:option
163 …void draw( QStyle::ControlElement element, QStyleOption* option, QImage* image, QStyle::State stat… in draw() argument
165 option->state |= state; in draw()
166 option->rect = image->rect(); in draw()
169 kapp->style()->drawControl(element, option, &painter); in draw()
172 …void draw( QStyle::PrimitiveElement element, QStyleOption* option, QImage* image, QStyle::State st… in draw() argument
174 option->state |= state; in draw()
175 option->rect = image->rect(); in draw()
177 option->rect.adjust( nAdjust, nAdjust, -nAdjust, -nAdjust ); in draw()
180 kapp->style()->drawPrimitive(element, option, &painter); in draw()
183 …void draw( QStyle::ComplexControl element, QStyleOptionComplex* option, QImage* image, QStyle::Sta… in draw() argument
185 option->state |= state; in draw()
186 option->rect = image->rect(); in draw()
189 kapp->style()->drawComplexControl(element, option, &painter); in draw()
211 QStyleOptionFrameV3 option; in lcl_drawFrame() local
212 option.frameShape = QFrame::StyledPanel; in lcl_drawFrame()
213 option.state = QStyle::State_Sunken; in lcl_drawFrame()
215 QStyleOptionFrame option; in lcl_drawFrame()
222 option.initFrom( &aFrame ); in lcl_drawFrame()
223 option.lineWidth = aFrame.lineWidth(); in lcl_drawFrame()
224 option.midLineWidth = aFrame.midLineWidth(); in lcl_drawFrame()
227 draw(element, &option, image, state); in lcl_drawFrame()
274 QStyleOptionButton option; in drawNativeControl() local
275 draw( QStyle::CE_PushButton, &option, m_image, in drawNativeControl()
282 QStyleOptionMenuItem option; in drawNativeControl() local
283 draw( QStyle::CE_MenuBarItem, &option, m_image, in drawNativeControl()
298 QStyleOptionMenuItem option; in drawNativeControl() local
299 draw( QStyle::CE_MenuItem, &option, m_image, in drawNativeControl()
304 QStyleOptionButton option; in drawNativeControl() local
305 draw( QStyle::PE_IndicatorMenuCheckMark, &option, m_image, in drawNativeControl()
310 QStyleOptionButton option; in drawNativeControl() local
311 draw( QStyle::PE_IndicatorRadioButton, &option, m_image, in drawNativeControl()
317 QStyleOptionFrameV3 option; in drawNativeControl() local
318 option.frameShape = QFrame::StyledPanel; in drawNativeControl()
320 QStyleOptionFrameV2 option; in drawNativeControl()
322 draw( QStyle::PE_FrameMenu, &option, m_image, in drawNativeControl()
328 QStyleOptionToolButton option; in drawNativeControl() local
330 option.arrowType = Qt::NoArrow; in drawNativeControl()
331 option.subControls = QStyle::SC_ToolButton; in drawNativeControl()
333 option.state = vclStateValue2StateFlag( nControlState, value ); in drawNativeControl()
334 option.state |= QStyle::State_Raised | QStyle::State_Enabled | QStyle::State_AutoRaise; in drawNativeControl()
336 draw( QStyle::CC_ToolButton, &option, m_image, in drawNativeControl()
341 QStyleOptionToolBar option; in drawNativeControl() local
343 option.rect = QRect(0, 0, widgetRect.width(), widgetRect.height()); in drawNativeControl()
344 option.state = vclStateValue2StateFlag( nControlState, value ); in drawNativeControl()
346 draw( QStyle::CE_ToolBar, &option, m_image, in drawNativeControl()
354 QStyleOption option; in drawNativeControl() local
355 option.state = QStyle::State_Horizontal; in drawNativeControl()
357 draw( QStyle::PE_IndicatorToolBarHandle, &option, m_image, in drawNativeControl()
364 QStyleOptionFrameV2 option; in drawNativeControl() local
365 draw( QStyle::PE_PanelLineEdit, &option, m_image, in drawNativeControl()
368 draw( QStyle::PE_FrameLineEdit, &option, m_image, in drawNativeControl()
373 QStyleOptionComboBox option; in drawNativeControl() local
374 option.editable = true; in drawNativeControl()
376 draw( QStyle::CC_ComboBox, &option, m_image, in drawNativeControl()
388 QStyleOptionComboBox option; in drawNativeControl() local
391 draw( QStyle::CE_ComboBoxLabel, &option, m_image, in drawNativeControl()
396 draw( QStyle::CC_ComboBox, &option, m_image, in drawNativeControl()
403 QStyleOption option; in drawNativeControl() local
404 option.state = QStyle::State_Item | QStyle::State_Children; in drawNativeControl()
407 option.state |= QStyle::State_Open; in drawNativeControl()
409 draw( QStyle::PE_IndicatorBranch, &option, m_image, in drawNativeControl()
414 QStyleOptionButton option; in drawNativeControl() local
415 draw( QStyle::CE_CheckBox, &option, m_image, in drawNativeControl()
422 QStyleOptionSlider option; in drawNativeControl() local
428 option.state = QStyle::State_MouseOver; in drawNativeControl()
432 option.orientation = Qt::Vertical; in drawNativeControl()
434 option.state |= QStyle::State_Horizontal; in drawNativeControl()
437 option.minimum = sbVal->mnMin; in drawNativeControl()
438 option.maximum = sbVal->mnMax - sbVal->mnVisibleSize; in drawNativeControl()
439 option.sliderValue = sbVal->mnCur; in drawNativeControl()
440 option.sliderPosition = sbVal->mnCur; in drawNativeControl()
441 option.pageStep = sbVal->mnVisibleSize; in drawNativeControl()
445 option.activeSubControls = QStyle::SC_ScrollBarSlider; in drawNativeControl()
447 draw( QStyle::CC_ScrollBar, &option, m_image, in drawNativeControl()
457 QStyleOptionSpinBox option; in drawNativeControl() local
464 option.activeSubControls |= QStyle::SC_SpinBoxUp; in drawNativeControl()
466 option.activeSubControls |= QStyle::SC_SpinBoxDown; in drawNativeControl()
469 draw( QStyle::CC_SpinBox, &option, m_image, in drawNativeControl()
474 QStyleOptionGroupBox option; in drawNativeControl() local
475 draw( QStyle::CC_GroupBox, &option, m_image, in drawNativeControl()
480 QStyleOptionButton option; in drawNativeControl() local
481 draw( QStyle::CE_RadioButton, &option, m_image, in drawNativeControl()
486 QStyleOption option; in drawNativeControl() local
487 draw( QStyle::PE_PanelTipLabel, &option, m_image, in drawNativeControl()
526 QStyleOptionMenuItem option; in drawNativeControl() local
527 option.menuItemType = QStyleOptionMenuItem::Separator; in drawNativeControl()
528 option.state |= QStyle::State_Item; in drawNativeControl()
530 draw( QStyle::CE_MenuItem, &option, m_image, in drawNativeControl()
537 QStyleOptionSlider option; in drawNativeControl() local
539 option.rect = QRect(0, 0, widgetRect.width(), widgetRect.height()); in drawNativeControl()
540 option.state = vclStateValue2StateFlag( nControlState, value ); in drawNativeControl()
541 option.maximum = slVal->mnMax; in drawNativeControl()
542 option.minimum = slVal->mnMin; in drawNativeControl()
543 option.sliderPosition = option.sliderValue = slVal->mnCur; in drawNativeControl()
544 option.orientation = (part == PART_TRACK_HORZ_AREA) ? Qt::Horizontal : Qt::Vertical; in drawNativeControl()
546 draw( QStyle::CC_Slider, &option, m_image, vclStateValue2StateFlag(nControlState, value) ); in drawNativeControl()