This command can be used to replace the current selection with a given text.
More...
#include <replaceselectioncommand.h>
This command can be used to replace the current selection with a given text.
◆ ReplaceSelectionCommand()
edbee::ReplaceSelectionCommand::ReplaceSelectionCommand |
( |
const QString & | text, |
|
|
int | coalesceId ) |
The constructor of the replaceSelection command.
- Parameters
-
text | the text to replace |
coalesceId | the coalesceId top merge undo operations |
◆ commandId()
virtual int edbee::ReplaceSelectionCommand::commandId |
( |
| ) |
|
|
inlinevirtual |
◆ execute()
Executes the replace selection command.
- Parameters
-
controller | the controller context this command runs ons |
Implements edbee::TextEditorCommand.
◆ toString()
QString edbee::ReplaceSelectionCommand::toString |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: