Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
src_gui_util_qundostack.cpp File Reference

(05fc3aef53348fb58be6308076e000825b704e58)

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]
 
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]
 
MyCommand * command2 = new MyCommand()
 
MyCommand * command3 = new MyCommand()
 
QUndoCommandinsertRed = new QUndoCommand()
 [1]
 

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 )

Referenced by QV4::Compiler::Codegen::visit(), and QV4::Compiler::Codegen::visit().

+ 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 )

References other().

+ 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" )

Referenced by QWidgetLineControl::setMaxLength().

+ Here is the caller graph for this function:

◆ undo()

stack undo ( )

Variable Documentation

◆ command1

MyCommand* command1 = new MyCommand()

[0]

[1]

Definition at line 22 of file src_gui_util_qundostack.cpp.

Referenced by wrapInFunction().

◆ command2

MyCommand* command2 = new MyCommand()

Definition at line 24 of file src_gui_util_qundostack.cpp.

Referenced by wrapInFunction().

◆ command3

MyCommand* command3 = new MyCommand()

Definition at line 29 of file src_gui_util_qundostack.cpp.

◆ insertRed

QUndoCommand * insertRed = new QUndoCommand()

[1]

[4]

[2]

[5]

Definition at line 35 of file src_gui_util_qundostack.cpp.