mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-23 10:30:53 +01:00
Add undo / redo command
The undo/redo command of diagram editor is shared to the terminal strip editor.
This commit is contained in:
@@ -55,6 +55,11 @@ TerminalStripEditorWindow::TerminalStripEditorWindow(QETProject *project, QWidge
|
||||
m_project(project)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
if (auto diagram_editor = QETApp::diagramEditor(project)) {
|
||||
ui->m_tool_bar->addSeparator();
|
||||
ui->m_tool_bar->addAction(diagram_editor->undo);
|
||||
ui->m_tool_bar->addAction(diagram_editor->redo);
|
||||
}
|
||||
ui->m_remove_terminal->setDisabled(true);
|
||||
addTreeDockWidget();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user