QtBase  v6.3.1
Classes | Functions | Variables
src_gui_util_qundostack.cpp File Reference

Go to the source code of this file.

Classes

class  AppendText
 [0] More...
 

Functions

stack push (command1)
 
stack push (command2)
 
stack undo ()
 
stack push (command3)
 
insertRed setText ("insert red text")
 
new InsertText (document, idx, text, insertRed)
 
new SetColor (document, idx, text.length(), Qt::red, insertRed)
 
stack push (insertRed)
 
stack beginMacro ("insert red text")
 [3] More...
 
stack push (new InsertText(document, idx, text))
 
stack push (new SetColor(document, idx, text.length(), Qt::red))
 
stack endMacro ()
 

Variables

MyCommand * command1 = new MyCommand()
 [0] More...
 
MyCommand * command2 = new MyCommand()
 
MyCommand * command3 = new MyCommand()
 
QUndoCommandinsertRed = new QUndoCommand()
 [1] More...
 

Function Documentation

◆ beginMacro()

stack beginMacro ( "insert red text"  )

[3]

[4]

◆ endMacro()

stack endMacro ( )

◆ InsertText()

new InsertText ( document  ,
idx  ,
text  ,
insertRed   
)

◆ push() [1/6]

stack push ( command1  )
Here is the caller graph for this function:

◆ push() [2/6]

stack push ( command2  )

◆ push() [3/6]

stack push ( command3  )

◆ push() [4/6]

stack push ( insertRed  )
Here is the call graph for this function:

◆ push() [5/6]

stack push ( new   InsertTextdocument, idx, text)

◆ push() [6/6]

stack push ( new   SetColordocument, idx, text.length(), Qt::red)

◆ SetColor()

new SetColor ( document  ,
idx  ,
text.  length(),
Qt::red  ,
insertRed   
)

◆ setText()

insertRed setText ( "insert red text"  )

◆ undo()

stack undo ( )
Here is the caller graph for this function:

Variable Documentation

◆ command1

MyCommand* command1 = new MyCommand()

[0]

[1]

Definition at line 69 of file src_gui_util_qundostack.cpp.

◆ command2

MyCommand* command2 = new MyCommand()

Definition at line 71 of file src_gui_util_qundostack.cpp.

◆ command3

MyCommand* command3 = new MyCommand()

Definition at line 76 of file src_gui_util_qundostack.cpp.

◆ insertRed

QUndoCommand * insertRed = new QUndoCommand()

[1]

[4]

[2]

[5]

Definition at line 82 of file src_gui_util_qundostack.cpp.