java.lang.Object
io.qt.QtObject
io.qt.widgets.QUndoCommand
- All Implemented Interfaces:
QtObjectInterface
The base class of all commands stored on a QUndoStack
Java wrapper for Qt class QUndoCommand
- Since:
- This class was introduced in Qt 4.2.
-
Constructor Summary
ConstructorDescriptionOverloaded constructor forQUndoCommand(io.qt.widgets.QUndoCommand)
withparent = null
.QUndoCommand
(QUndoCommand parent) QUndoCommand
(String text) Overloaded constructor forQUndoCommand(java.lang.String, io.qt.widgets.QUndoCommand)
withparent = null
.QUndoCommand
(String text, QUndoCommand parent) -
Method Summary
Modifier and TypeMethodDescriptionfinal String
final QUndoCommand
child
(int index) final int
int
id()
final boolean
boolean
mergeWith
(QUndoCommand other) void
redo()
final void
setObsolete
(boolean obsolete) final void
final String
text()
void
undo()
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QUndoCommand
- Parameters:
text
-parent
-
-
QUndoCommand
- Parameters:
parent
-
-
QUndoCommand
Overloaded constructor for
QUndoCommand(java.lang.String, io.qt.widgets.QUndoCommand)
withparent = null
. -
QUndoCommand
public QUndoCommand()Overloaded constructor for
QUndoCommand(io.qt.widgets.QUndoCommand)
withparent = null
.
-
-
Method Details
-
actionText
- Returns:
- Since:
- This function was introduced in Qt 4.8.
-
child
- Parameters:
index
-- Returns:
- Since:
- This function was introduced in Qt 4.4.
-
childCount
- Returns:
- Since:
- This function was introduced in Qt 4.4.
-
isObsolete
- Returns:
- Since:
- This function was introduced in Qt 5.9.
-
setObsolete
- Parameters:
obsolete
-- Since:
- This function was introduced in Qt 5.9.
-
setText
- Parameters:
text
-
-
text
- Returns:
-
id
- Returns:
-
mergeWith
- Parameters:
other
-- Returns:
-
redo
-
undo
-