mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-06-26 10:54:14 +02:00
Compare commits
2 Commits
d711d8fb4a
...
a121fbe530
| Author | SHA1 | Date | |
|---|---|---|---|
| a121fbe530 | |||
| a2ae8255ac |
@@ -1037,8 +1037,10 @@ bool TerminalStrip::fromXml(QDomElement &xml_element)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
auto raw_ptr = new PhysicalTerminal(this, real_t_vector);
|
if (!real_t_vector.isEmpty()) {
|
||||||
m_physical_terminals.append(raw_ptr->sharedRef());
|
auto raw_ptr = new PhysicalTerminal(this, real_t_vector);
|
||||||
|
m_physical_terminals.append(raw_ptr->sharedRef());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,6 +55,11 @@ TerminalStripEditorWindow::TerminalStripEditorWindow(QETProject *project, QWidge
|
|||||||
m_project(project)
|
m_project(project)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
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);
|
ui->m_remove_terminal->setDisabled(true);
|
||||||
addTreeDockWidget();
|
addTreeDockWidget();
|
||||||
|
|
||||||
|
|||||||
@@ -33,12 +33,12 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>1364</width>
|
<width>1364</width>
|
||||||
<height>21</height>
|
<height>23</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QStatusBar" name="statusbar"/>
|
<widget class="QStatusBar" name="statusbar"/>
|
||||||
<widget class="QToolBar" name="toolBar">
|
<widget class="QToolBar" name="m_tool_bar">
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>toolBar</string>
|
<string>toolBar</string>
|
||||||
</property>
|
</property>
|
||||||
|
|||||||
@@ -54,6 +54,8 @@ class KAutoSaveFile;
|
|||||||
class QETDiagramEditor : public QETMainWindow
|
class QETDiagramEditor : public QETMainWindow
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
friend class TerminalStripEditorWindow;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QETDiagramEditor(
|
QETDiagramEditor(
|
||||||
|
|||||||
Reference in New Issue
Block a user