|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Qt.ContextMenuPolicy>
com.trolltech.qt.core.Qt.ContextMenuPolicy
public static enum Qt.ContextMenuPolicy
This enum type defines the various policies a widget can have with respect to showing a context menu.
Enum Constant Summary | |
---|---|
ActionsContextMenu
the widget displays its QWidget::actions() as context menu. |
|
CustomContextMenu
the widget emits the QWidget::customContextMenuRequested() signal. |
|
DefaultContextMenu
the widget's QWidget::contextMenuEvent() handler is called. |
|
NoContextMenu
the widget does not feature a context menu, context menu handling is deferred to the widget's parent. |
|
PreventContextMenu
the widget does not feature a context menu, and in contrast to NoContextMenu, the handling is not deferred to the widget's parent. |
Method Summary | |
---|---|
static Qt.ContextMenuPolicy |
resolve(int value)
|
int |
value()
|
static Qt.ContextMenuPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Qt.ContextMenuPolicy[] |
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 Qt.ContextMenuPolicy NoContextMenu
the widget does not feature a context menu, context menu handling is deferred to the widget's parent.
public static final Qt.ContextMenuPolicy DefaultContextMenu
the widget's QWidget::contextMenuEvent() handler is called.
public static final Qt.ContextMenuPolicy ActionsContextMenu
the widget displays its QWidget::actions() as context menu.
public static final Qt.ContextMenuPolicy CustomContextMenu
the widget emits the QWidget::customContextMenuRequested() signal.
public static final Qt.ContextMenuPolicy PreventContextMenu
the widget does not feature a context menu, and in contrast to NoContextMenu, the handling is not deferred to the widget's parent. This means that all right mouse button events are guaranteed to be delivered to the widget itself through mousePressEvent(), and mouseReleaseEvent().
Method Detail |
---|
public static final Qt.ContextMenuPolicy[] values()
for(Qt.ContextMenuPolicy c : Qt.ContextMenuPolicy.values()) System.out.println(c);
public static Qt.ContextMenuPolicy 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 Qt.ContextMenuPolicy resolve(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |