|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.core.Qt.ItemDataRole
public static class Qt.ItemDataRole
Each item in the model has a set of data elements associated with it, each with its own role. The roles are used by the view to indicate to the model which type of data it needs.
The general purpose roles are:
Constant | Value | Description |
---|---|---|
DisplayRole | 0 | The key data to be rendered (usually text). |
DecorationRole | 1 | The data to be rendered as a decoration (usually an icon). |
EditRole | 2 | The data in a form suitable for editing in an editor. |
ToolTipRole | 3 | The data displayed in the item's tooltip. |
StatusTipRole | 4 | The data displayed in the status bar. |
WhatsThisRole | 5 | The data displayed for the item in "What's This?" mode. |
SizeHintRole | 13 | The size hint for the item that will be supplied to views. |
Roles describing appearance and meta data:
Constant | Value | Description |
---|---|---|
FontRole | 6 | The font used for items rendered with the default delegate. |
TextAlignmentRole | 7 | The alignment of the text for items rendered with the default delegate. |
BackgroundRole | 8 | The background brush used for items rendered with the default delegate. |
BackgroundColorRole | 8 | This role is obsolete. Use BackgroundRole instead. |
ForegroundRole | 9 | The foreground brush (text color, typically) used for items rendered with the default delegate. |
TextColorRole | 9 | This role is obsolete. Use ForegroundRole instead. |
CheckStateRole | 10 | This role is used to obtain the checked state of an item (see Qt::CheckState). |
Accessibility roles:
Constant | Value | Description |
---|---|---|
AccessibleTextRole | 11 | The text to be used by accessibility extensions and plugins, such as screen readers. |
AccessibleDescriptionRole | 12 | A description of the item for accessibility purposes. |
User roles:
Constant | Value | Description |
---|---|---|
UserRole | 32 | The first role that can be used for application-specific purposes. |
Field Summary | |
---|---|
static int |
AccessibleDescriptionRole
A description of the item for accessibility purposes. |
static int |
AccessibleTextRole
The text to be used by accessibility extensions and plugins, such as screen readers. |
static int |
BackgroundRole
The background brush used for items rendered with the default delegate. |
static int |
CheckStateRole
This role is used to obtain the checked state of an item (see Qt::CheckState). |
static int |
DecorationRole
The data to be rendered as a decoration (usually an icon). |
static int |
DisplayRole
The key data to be rendered (usually text). |
static int |
EditRole
The data in a form suitable for editing in an editor. |
static int |
FontRole
The font used for items rendered with the default delegate. |
static int |
ForegroundRole
The foreground brush (text color, typically) used for items rendered with the default delegate. |
static int |
SizeHintRole
The size hint for the item that will be supplied to views. |
static int |
StatusTipRole
The data displayed in the status bar. |
static int |
TextAlignmentRole
The alignment of the text for items rendered with the default delegate. |
static int |
ToolTipRole
The data displayed in the item's tooltip. |
static int |
UserRole
The first role that can be used for application-specific purposes. |
static int |
WhatsThisRole
The data displayed for the item in "What's This? |
Constructor Summary | |
---|---|
Qt.ItemDataRole()
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DisplayRole
The key data to be rendered (usually text).
public static final int DecorationRole
The data to be rendered as a decoration (usually an icon).
public static final int EditRole
The data in a form suitable for editing in an editor.
public static final int ToolTipRole
The data displayed in the item's tooltip.
public static final int StatusTipRole
The data displayed in the status bar.
public static final int WhatsThisRole
The data displayed for the item in "What's This?" mode.
public static final int FontRole
The font used for items rendered with the default delegate.
public static final int TextAlignmentRole
The alignment of the text for items rendered with the default delegate.
public static final int BackgroundRole
The background brush used for items rendered with the default delegate.
public static final int ForegroundRole
The foreground brush (text color, typically) used for items rendered with the default delegate.
public static final int CheckStateRole
This role is used to obtain the checked state of an item (see Qt::CheckState).
public static final int AccessibleTextRole
The text to be used by accessibility extensions and plugins, such as screen readers.
public static final int AccessibleDescriptionRole
A description of the item for accessibility purposes.
public static final int SizeHintRole
The size hint for the item that will be supplied to views.
public static final int UserRole
The first role that can be used for application-specific purposes.
Constructor Detail |
---|
public Qt.ItemDataRole()
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |