- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Qt.DropActions>
- Enclosing class:
Qt
public static final class Qt.DropActions
extends QFlags<Qt.DropAction>
implements Comparable<Qt.DropActions>
QFlags type for enum Qt.DropAction- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new DropActions.DropActions(int value) Creates a new DropActions with givenvalue.DropActions(Qt.DropAction ... args) Creates a new DropActions where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionfinal Qt.DropActionsclone()Clones the flagsfinal Qt.DropActionsCombines this flags with enum entry.final intcompareTo(Qt.DropActions other) final Qt.DropAction []flags()Returns an array of flag objects represented by this DropActions.final Qt.DropActionsSets the flagefinal Qt.DropActionssetFlag(Qt.DropAction e, boolean on) Sets or clears the flagflagfinal voidsetValue(int value) Sets the value of this QFlags.final intvalue()Returns the value of this QFlags.
-
Constructor Details
-
DropActions
public DropActions()Creates a new DropActions. -
DropActions
Creates a new DropActions where the flags inargsare set.- Parameters:
args- enum entries
-
DropActions
public DropActions(int value) Creates a new DropActions with givenvalue.- Parameters:
value-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combinedin classQFlags<Qt.DropAction>- Parameters:
e- enum entry- Returns:
- new DropActions
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<Qt.DropAction>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin classQFlags<Qt.DropAction>- Parameters:
e- enum entryon- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this DropActions.- Overrides:
flagsin classQFlags<Qt.DropAction>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<Qt.DropAction>
-
compareTo
- Specified by:
compareToin interfaceComparable<Qt.DropActions>
-
value
public final int value()Returns the value of this QFlags. -
setValue
public final void setValue(int value) Sets the value of this QFlags.- Parameters:
value- new value
-