The MoveDiagramCommand class Undo/redo support for reordering a folio (diagram) within a project's tabs. Wraps ProjectView::setDiagramPosition(), which performs the tab move and the matching (synchronous) project diagram-list reorder in one step.
More...
#include <movediagramcommand.h>
Inherits QUndoCommand.
The MoveDiagramCommand class Undo/redo support for reordering a folio (diagram) within a project's tabs. Wraps ProjectView::setDiagramPosition(), which performs the tab move and the matching (synchronous) project diagram-list reorder in one step.
◆ MoveDiagramCommand()
| MoveDiagramCommand::MoveDiagramCommand |
( |
ProjectView * | project_view, |
|
|
Diagram * | diagram, |
|
|
int | new_position, |
|
|
QUndoCommand * | parent = nullptr ) |
◆ redo()
| void MoveDiagramCommand::redo |
( |
| ) |
|
|
override |
◆ undo()
| void MoveDiagramCommand::undo |
( |
| ) |
|
|
override |
◆ m_diagram
| Diagram* MoveDiagramCommand::m_diagram |
|
private |
◆ m_new_position
| int MoveDiagramCommand::m_new_position |
|
private |
◆ m_old_position
| int MoveDiagramCommand::m_old_position |
|
private |
◆ m_project_view
| QPointer<ProjectView> MoveDiagramCommand::m_project_view |
|
private |
The documentation for this class was generated from the following files: