|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Enum
com.trolltech.qt.core.Qt.ItemFlag
public static final class Qt.ItemFlag
This enum describes the properties of an item. Note that checkable items need to be given both a suitable set of flags and an initial state, indicating whether the item is checked or not. This is handled automatically for model/view components, but needs to be explicitly set for instances of QListWidgetItem
, QTableWidgetItem
, and QTreeWidgetItem
.
QAbstractItemModel
.
Field Summary | |
---|---|
static Qt.ItemFlag |
ItemIsDragEnabled
It can be dragged. |
static Qt.ItemFlag |
ItemIsDropEnabled
It can be used as a drop target. |
static Qt.ItemFlag |
ItemIsEditable
It can be edited. |
static Qt.ItemFlag |
ItemIsEnabled
The user can interact with the item. |
static Qt.ItemFlag |
ItemIsSelectable
It can be selected. |
static Qt.ItemFlag |
ItemIsTristate
The item is checkable with three separate states. |
static Qt.ItemFlag |
ItemIsUserCheckable
It can be checked or unchecked by the user. |
static Qt.ItemFlag |
NoItemFlags
It does not have any properties set. |
Method Summary | |
---|---|
static Qt.ItemFlags |
createQFlags(Qt.ItemFlag[] values)
|
static Qt.ItemFlag |
resolve(int value)
|
int |
value()
This function should return an integer value for the enum values of the enumeration that implements this interface. |
static Qt.ItemFlag |
valueOf(java.lang.String name)
|
static Qt.ItemFlag[] |
values()
|
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Qt.ItemFlag NoItemFlags
public static final Qt.ItemFlag ItemIsSelectable
public static final Qt.ItemFlag ItemIsEditable
public static final Qt.ItemFlag ItemIsDragEnabled
public static final Qt.ItemFlag ItemIsDropEnabled
public static final Qt.ItemFlag ItemIsUserCheckable
public static final Qt.ItemFlag ItemIsEnabled
public static final Qt.ItemFlag ItemIsTristate
Method Detail |
---|
public static Qt.ItemFlag[] values()
public static Qt.ItemFlag valueOf(java.lang.String name)
public int value()
value
in interface QtEnumerator
public static Qt.ItemFlags createQFlags(Qt.ItemFlag[] values)
public static Qt.ItemFlag resolve(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |