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:
joshua
2022-04-08 20:48:32 +02:00
parent a38d97896d
commit 6197d0215a
7 changed files with 192 additions and 70 deletions

View File

@@ -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;
}