KDELibs4Support

K4Style::CheckBox Struct Reference

#include <k4style.h>

Public Types

enum  LayoutProp { Size, BoxTextSpace, NoLabelFocusMargin, FocusMargin = NoLabelFocusMargin + MarginInc }
 
enum  Primitive { CheckOn, CheckOff, CheckTriState }
 

Detailed Description

Describes widgets like QCheckBox.

See also
WT_CheckBox

Definition at line 552 of file k4style.h.

Member Enumeration Documentation

See also
setWidgetLayoutProp()
Enumerator
Size 

(16) size of the checkbox [sets PM_IndicatorWidth, PM_IndicatorHeight]

BoxTextSpace 

(6) space to leave between checkbox and text (and icon between them in case there is one)

NoLabelFocusMargin 

(1) rectangle to apply to the checkbox rectangle to get where to paint the focus rectangle in case of a labelless checkbox

FocusMargin 

(0) margin around the checkbox contents reserved for the focus rect

Todo:
have a look, it isn't as nice as plastique etc.

Definition at line 556 of file k4style.h.

Relevant elements:

[check primitives implement QStyle::PE_IndicatorCheckBox] [K4Style implements QStyle::CE_CheckBox to compose a CheckBox using the mentioned primitives]

See also
drawKStylePrimitive()
Enumerator
CheckOn 

checkbox which is checked

CheckOff 

checkbox which is not checked

CheckTriState 

tristate checkbox (neither off nor on)

Definition at line 577 of file k4style.h.


The documentation for this struct was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Aug 5 2020 22:56:35 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.