QStyleOptionViewItemV2 Class Reference
|
Константа | Значение | Описание |
---|---|---|
QStyleOptionViewItemV2::Version | 2 | 2 |
The version is used by QStyleOption subclasses to implement extensions without breaking compatibility. If you use qstyleoption_cast(), you normally do not need to check it.
See also StyleOptionType.
This enum describles the different types of features an item can have.
Константа | Значение | Описание |
---|---|---|
QStyleOptionViewItemV2::None | 0x00 | Indicates a normal item. |
QStyleOptionViewItemV2::WrapText | 0x01 | Indicates an item with wrapped text. |
QStyleOptionViewItemV2::Alternate | 0x02 | Indicates that the item's background is rendered using alternateBase. |
QStyleOptionViewItemV2::HasCheckIndicator | 0x04 | Indicates that the item has a check state indicator. |
QStyleOptionViewItemV2::HasDisplay | 0x08 | Indicates that the item has a display role. |
QStyleOptionViewItemV2::HasDecoration | 0x10 | Indicates that the item has a decoration role. |
The ViewItemFeatures type is a typedef for QFlags<ViewItemFeature>. It stores an OR combination of ViewItemFeature values.
Constructs a QStyleOptionViewItemV2 object.
Создаёт копию other.
Constructs a QStyleOptionViewItemV2 copy of the other style option which can be either of the QStyleOptionViewItemV2 or QStyleOptionViewItem types.
If the other style option's version is 1, the new style option's ViewItemFeature value is set to QStyleOptionViewItemV2::None. If its version is 2, its ViewItemFeature value is simply copied to the new style option.
See also version.
Assigns the other style option to this style option. The other style option can be either of the QStyleOptionViewItemV2 or QStyleOptionViewItem types.
If the other style option's version is 1, this style option's ViewItemFeature value is set to QStyleOptionViewItemV2::None. If its version is 2, its ViewItemFeature value is simply copied to this style option.
This variable holds a bitwise OR of the features that describe this view item.
See also ViewItemFeature.
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Торговые марки | Qt 4.5.3 |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |