|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<QIcon.Mode>
com.trolltech.qt.gui.QIcon.Mode
public static enum QIcon.Mode
This enum type describes the mode for which a pixmap is intended to be used. The currently defined modes are:
Constant | Value | Description |
---|---|---|
Normal | 0 | Display the pixmap when the user is not interacting with the icon, but the functionality represented by the icon is available. |
Disabled | 1 | Display the pixmap when the functionality represented by the icon is not available. |
Active | 2 | Display the pixmap when the functionality represented by the icon is available and the user is interacting with the icon, for example, moving the mouse over it or clicking it. |
Selected | 3 | Display the pixmap when the item represented by the icon is selected. |
Enum Constant Summary | |
---|---|
Active
Display the pixmap when the functionality represented by the icon is available and the user is interacting with the icon, for example, moving the mouse over it or clicking it. |
|
Disabled
Display the pixmap when the functionality represented by the icon is not available. |
|
Normal
Display the pixmap when the user is not interacting with the icon, but the functionality represented by the icon is available. |
|
Selected
Display the pixmap when the item represented by the icon is selected. |
Method Summary | |
---|---|
static QIcon.Mode |
resolve(int value)
|
int |
value()
|
static QIcon.Mode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static QIcon.Mode[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final QIcon.Mode Normal
Display the pixmap when the user is not interacting with the icon, but the functionality represented by the icon is available.
public static final QIcon.Mode Disabled
Display the pixmap when the functionality represented by the icon is not available.
public static final QIcon.Mode Active
Display the pixmap when the functionality represented by the icon is available and the user is interacting with the icon, for example, moving the mouse over it or clicking it.
public static final QIcon.Mode Selected
Display the pixmap when the item represented by the icon is selected.
Method Detail |
---|
public static final QIcon.Mode[] values()
for(QIcon.Mode c : QIcon.Mode.values()) System.out.println(c);
public static QIcon.Mode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic int value()
value
in interface QtEnumerator
public static QIcon.Mode resolve(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |