mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Revamp code
Change the way to know who is the physical terminal of a real terminal when we got only the real terminal.
This commit is contained in:
@@ -97,7 +97,7 @@ void RealTerminal::setPhysicalTerminal(const QSharedPointer<PhysicalTerminal> &p
|
||||
* @brief parentStrip
|
||||
* @return parent terminal strip or nullptr
|
||||
*/
|
||||
TerminalStrip *RealTerminal::parentStrip() const {
|
||||
TerminalStrip *RealTerminal::parentStrip() const noexcept {
|
||||
if (m_physical_terminal) {
|
||||
return m_physical_terminal->terminalStrip();
|
||||
} else {
|
||||
@@ -110,7 +110,7 @@ TerminalStrip *RealTerminal::parentStrip() const {
|
||||
* @return The parent physical terminal of this terminal.
|
||||
* The returned QSharedPointer can be null
|
||||
*/
|
||||
QSharedPointer<PhysicalTerminal> RealTerminal::physicalTerminal() const {
|
||||
QSharedPointer<PhysicalTerminal> RealTerminal::physicalTerminal() const noexcept{
|
||||
return m_physical_terminal;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user