mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-06 05:10:52 +01:00
Terminal strip can now be edited and managed by undo command
This commit is contained in:
@@ -318,6 +318,29 @@ void TerminalStrip::setDescription(const QString &description) {
|
||||
m_data.m_description = description;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief TerminalStrip::data
|
||||
* @return The internal data of this strip
|
||||
*/
|
||||
TerminalStripData TerminalStrip::data() const {
|
||||
return m_data;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief TerminalStrip::setData
|
||||
* The internal data of this strip to data.
|
||||
* the uuid of the new data is set to the uuid
|
||||
* of the previous data to keep the uuid
|
||||
* of the terminal strip unchanged
|
||||
* @param data
|
||||
*/
|
||||
void TerminalStrip::setData(const TerminalStripData &data)
|
||||
{
|
||||
auto uuid_ = m_data.m_uuid;
|
||||
m_data = data;
|
||||
m_data.m_uuid = uuid_;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief TerminalStrip::addTerminal
|
||||
* Add terminal to this terminal strip
|
||||
|
||||
Reference in New Issue
Block a user