Tipos públicos |
enum | AdditionalStyleValues { Undefined = - 1,
Undefined = - 1
} |
enum | DisplayMode {
DisplayBlock,
DisplayInline,
DisplayListItem,
DisplayNone,
DisplayModeUndefined = -1,
DisplayBlock,
DisplayInline,
DisplayListItem,
DisplayNone,
DisplayModeUndefined = -1
} |
enum | VerticalAlignment {
VAlignBaseline,
VAlignSub,
VAlignSuper,
VAlignBaseline,
VAlignSub,
VAlignSuper
} |
enum | WhiteSpaceMode {
WhiteSpaceNormal,
WhiteSpacePre,
WhiteSpaceNoWrap,
WhiteSpaceModeUndefined = -1,
WhiteSpaceNormal,
WhiteSpacePre,
WhiteSpaceNoWrap,
WhiteSpaceModeUndefined = -1
} |
enum | Margin {
MarginLeft,
MarginRight,
MarginTop,
MarginBottom,
MarginFirstLine,
MarginAll,
MarginVertical,
MarginHorizontal,
MarginUndefined = -1,
MarginLeft,
MarginRight,
MarginTop,
MarginBottom,
MarginFirstLine,
MarginAll,
MarginVertical,
MarginHorizontal,
MarginUndefined = -1
} |
enum | ListStyle {
ListDisc,
ListCircle,
ListSquare,
ListDecimal,
ListLowerAlpha,
ListUpperAlpha,
ListStyleUndefined = -1,
ListDisc,
ListCircle,
ListSquare,
ListDecimal,
ListLowerAlpha,
ListUpperAlpha,
ListStyleUndefined = -1
} |
enum | AdditionalStyleValues { Undefined = - 1,
Undefined = - 1
} |
enum | DisplayMode {
DisplayBlock,
DisplayInline,
DisplayListItem,
DisplayNone,
DisplayModeUndefined = -1,
DisplayBlock,
DisplayInline,
DisplayListItem,
DisplayNone,
DisplayModeUndefined = -1
} |
enum | VerticalAlignment {
VAlignBaseline,
VAlignSub,
VAlignSuper,
VAlignBaseline,
VAlignSub,
VAlignSuper
} |
enum | WhiteSpaceMode {
WhiteSpaceNormal,
WhiteSpacePre,
WhiteSpaceNoWrap,
WhiteSpaceModeUndefined = -1,
WhiteSpaceNormal,
WhiteSpacePre,
WhiteSpaceNoWrap,
WhiteSpaceModeUndefined = -1
} |
enum | Margin {
MarginLeft,
MarginRight,
MarginTop,
MarginBottom,
MarginFirstLine,
MarginAll,
MarginVertical,
MarginHorizontal,
MarginUndefined = -1,
MarginLeft,
MarginRight,
MarginTop,
MarginBottom,
MarginFirstLine,
MarginAll,
MarginVertical,
MarginHorizontal,
MarginUndefined = -1
} |
enum | ListStyle {
ListDisc,
ListCircle,
ListSquare,
ListDecimal,
ListLowerAlpha,
ListUpperAlpha,
ListStyleUndefined = -1,
ListDisc,
ListCircle,
ListSquare,
ListDecimal,
ListLowerAlpha,
ListUpperAlpha,
ListStyleUndefined = -1
} |
Métodos públicos |
| QStyleSheetItem (QStyleSheet *parent, const QString &name) |
| QStyleSheetItem (const QStyleSheetItem &) |
| ~QStyleSheetItem () |
QStyleSheetItem & | operator= (const QStyleSheetItem &other) |
QString | name () const |
QStyleSheet * | styleSheet () |
const QStyleSheet * | styleSheet () const |
DisplayMode | displayMode () const |
void | setDisplayMode (DisplayMode m) |
int | alignment () const |
void | setAlignment (int f) |
VerticalAlignment | verticalAlignment () const |
void | setVerticalAlignment (VerticalAlignment valign) |
int | fontWeight () const |
void | setFontWeight (int w) |
int | logicalFontSize () const |
void | setLogicalFontSize (int s) |
int | logicalFontSizeStep () const |
void | setLogicalFontSizeStep (int s) |
int | fontSize () const |
void | setFontSize (int s) |
QString | fontFamily () const |
void | setFontFamily (const QString &) |
int | numberOfColumns () const |
void | setNumberOfColumns (int ncols) |
QColor | color () const |
void | setColor (const QColor &) |
bool | fontItalic () const |
void | setFontItalic (bool) |
bool | definesFontItalic () const |
bool | fontUnderline () const |
void | setFontUnderline (bool) |
bool | definesFontUnderline () const |
bool | fontStrikeOut () const |
void | setFontStrikeOut (bool) |
bool | definesFontStrikeOut () const |
bool | isAnchor () const |
void | setAnchor (bool anc) |
WhiteSpaceMode | whiteSpaceMode () const |
void | setWhiteSpaceMode (WhiteSpaceMode m) |
int | margin (Margin m) const |
void | setMargin (Margin, int) |
ListStyle | listStyle () const |
void | setListStyle (ListStyle) |
QString | contexts () const |
void | setContexts (const QString &) |
bool | allowedInContext (const QStyleSheetItem *) const |
bool | selfNesting () const |
void | setSelfNesting (bool) |
void | setLineSpacing (int ls) |
int | lineSpacing () const |
| QStyleSheetItem (QStyleSheet *parent, const QString &name) |
| QStyleSheetItem (const QStyleSheetItem &) |
| ~QStyleSheetItem () |
QStyleSheetItem & | operator= (const QStyleSheetItem &other) |
QString | name () const |
QStyleSheet * | styleSheet () |
const QStyleSheet * | styleSheet () const |
DisplayMode | displayMode () const |
void | setDisplayMode (DisplayMode m) |
int | alignment () const |
void | setAlignment (int f) |
VerticalAlignment | verticalAlignment () const |
void | setVerticalAlignment (VerticalAlignment valign) |
int | fontWeight () const |
void | setFontWeight (int w) |
int | logicalFontSize () const |
void | setLogicalFontSize (int s) |
int | logicalFontSizeStep () const |
void | setLogicalFontSizeStep (int s) |
int | fontSize () const |
void | setFontSize (int s) |
QString | fontFamily () const |
void | setFontFamily (const QString &) |
int | numberOfColumns () const |
void | setNumberOfColumns (int ncols) |
QColor | color () const |
void | setColor (const QColor &) |
bool | fontItalic () const |
void | setFontItalic (bool) |
bool | definesFontItalic () const |
bool | fontUnderline () const |
void | setFontUnderline (bool) |
bool | definesFontUnderline () const |
bool | fontStrikeOut () const |
void | setFontStrikeOut (bool) |
bool | definesFontStrikeOut () const |
bool | isAnchor () const |
void | setAnchor (bool anc) |
WhiteSpaceMode | whiteSpaceMode () const |
void | setWhiteSpaceMode (WhiteSpaceMode m) |
int | margin (Margin m) const |
void | setMargin (Margin, int) |
ListStyle | listStyle () const |
void | setListStyle (ListStyle) |
QString | contexts () const |
void | setContexts (const QString &) |
bool | allowedInContext (const QStyleSheetItem *) const |
bool | selfNesting () const |
void | setSelfNesting (bool) |
void | setLineSpacing (int ls) |
int | lineSpacing () const |
The QStyleSheetItem class provides an encapsulation of a set of text styles.
A style sheet item consists of a name and a set of attributes that specifiy its font, color, etc. When used in a style sheet (see styleSheet()), items define the name() of a rich text tag and the display property changes associated with it.
The display mode attribute indicates whether the item is a block, an inline element or a list element; see setDisplayMode(). The treatment of whitespace is controlled by the white space mode; see setWhiteSpaceMode(). An item's margins are set with setMargin(), In the case of list items, the list style is set with setListStyle(). An item may be a hypertext link anchor; see setAnchor(). Other attributes are set with setAlignment(), setVerticalAlignment(), setFontFamily(), setFontSize(), setFontWeight(), setFontItalic(), setFontUnderline(), setFontStrikeOut and setColor().
This enum type defines the way adjacent elements are displayed.
DisplayBlock elements are displayed as a rectangular block (e.g.
{
...}).
DisplayInline elements are displayed in a horizontally flowing sequence (e.g.
{...}).
DisplayListItem elements are displayed in a vertical sequence (e.g.
{...}).
DisplayNone elements are not displayed at all.
- Valores de enumeraciones:
DisplayBlock |
|
DisplayInline |
|
DisplayListItem |
|
DisplayNone |
|
DisplayModeUndefined |
|
DisplayBlock |
|
DisplayInline |
|
DisplayListItem |
|
DisplayNone |
|
DisplayModeUndefined |
|
This enum type defines how the items in a list are prefixed when displayed.
ListDisc a filled circle (i.e. a bullet) ListCircle an unfilled circle ListSquare a filled square ListDecimal an integer in base 10: 1, 2, 3, ... ListLowerAlpha a lowercase letter: a, b, c, ... ListUpperAlpha an uppercase letter: A, B, C, ...
- Valores de enumeraciones:
ListDisc |
|
ListCircle |
|
ListSquare |
|
ListDecimal |
|
ListLowerAlpha |
|
ListUpperAlpha |
|
ListStyleUndefined |
|
ListDisc |
|
ListCircle |
|
ListSquare |
|
ListDecimal |
|
ListLowerAlpha |
|
ListUpperAlpha |
|
ListStyleUndefined |
|
This enum type defines the way elements are aligned vertically. This is only supported for text elements.
VAlignBaseline align the baseline of the element (or the bottom, if the element doesn't have a baseline) with the baseline of the parent
VAlignSub subscript the element
VAlignSuper superscript the element
- Valores de enumeraciones:
VAlignBaseline |
|
VAlignSub |
|
VAlignSuper |
|
VAlignBaseline |
|
VAlignSub |
|
VAlignSuper |
|
This enum defines the ways in which QStyleSheet can treat whitespace.
WhiteSpaceNormal any sequence of whitespace (including line-breaks) is equivalent to a single space.
WhiteSpacePre whitespace must be output exactly as given in the input.
WhiteSpaceNoWrap multiple spaces are collapsed as with WhiteSpaceNormal, but no automatic line-breaks occur. To break lines manually, use the
{
} tag.
- Valores de enumeraciones:
WhiteSpaceNormal |
|
WhiteSpacePre |
|
WhiteSpaceNoWrap |
|
WhiteSpaceModeUndefined |
|
WhiteSpaceNormal |
|
WhiteSpacePre |
|
WhiteSpaceNoWrap |
|
WhiteSpaceModeUndefined |
|
void QStyleSheetItem::setMargin |
( |
Margin |
m, |
|
|
int |
v |
|
) |
| |
Sets the width of margin m to v pixels.
The margin, m, can be MarginLeft
, MarginRight
, MarginTop
, MarginBottom
, MarginFirstLine
, MarginAll
, MarginVertical
or MarginHorizontal
. The value v must be >= 0.
- Ver también:
- margin()
La documentación para esta clase fue generada a partir de los siguientes ficheros: