mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-25 20:19:58 +01:00
Several real terminal can be added to terminal strip in one shot
User can select several real terminals in the free terminal editor and add it with one operation on a terminal strip.
This commit is contained in:
@@ -62,6 +62,11 @@ void TerminalStripTreeDockWidget::reload()
|
||||
m_uuid_terminal_H.clear();
|
||||
m_uuid_strip_H.clear();
|
||||
|
||||
for (const auto &connection_ : qAsConst(m_strip_changed_connection)) {
|
||||
disconnect(connection_);
|
||||
}
|
||||
m_strip_changed_connection.clear();
|
||||
|
||||
|
||||
buildTree();
|
||||
|
||||
@@ -285,6 +290,8 @@ QTreeWidgetItem* TerminalStripTreeDockWidget::addTerminalStrip(TerminalStrip *te
|
||||
|
||||
m_item_strip_H.insert(strip_item, terminal_strip);
|
||||
m_uuid_strip_H.insert(terminal_strip->uuid(), terminal_strip);
|
||||
|
||||
m_strip_changed_connection.append(connect(terminal_strip, &TerminalStrip::orderChanged, this, &TerminalStripTreeDockWidget::reload));
|
||||
return strip_item;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user