Revert "Revert "Merge branch 'master' of ssh://git.tuxfamily.org/gitroot/qet/qet into terminal_strip""

This reverts commit bb26954bd4.
This commit is contained in:
joshua
2021-09-10 23:30:20 +02:00
parent 543447aa31
commit 374805d6ab
27 changed files with 2814 additions and 12 deletions

View File

@@ -40,3 +40,26 @@ void TerminalElement::initLink(QETProject *project) {
Element::initLink(project);
}
/**
* @brief TerminalElement::setParentTerminalStrip
* Set \p strip as parent terminal strip.
* Be carefull, this function only set internally the parent terminal strip.
* This function don't check if there is a previous
* parent terminal strip and don't check
* if the new terminal strip have this terminal element
* in her list of terminal element.
* @param strip
*/
void TerminalElement::setParentTerminalStrip(TerminalStrip *strip) {
m_parent_terminal_strip = strip;
}
/**
* @brief TerminalElement::parentTerminalStrip
* @return The parent terminal strip of this
* terminal element or nullptr if not.
*/
TerminalStrip *TerminalElement::parentTerminalStrip() const {
return m_parent_terminal_strip.data();
}