QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
ChangeTerminalLevel Class Reference

#include <changeterminallevel.h>

Inherits QUndoCommand.

Collaboration diagram for ChangeTerminalLevel:
Collaboration graph

Public Member Functions

 ChangeTerminalLevel (TerminalStrip *strip, const QWeakPointer< RealTerminal > &real_terminal, int level, QUndoCommand *parent=nullptr)
 
void undo () override
 
void redo () override
 

Private Attributes

QPointer< TerminalStripm_strip
 
QWeakPointer< RealTerminalm_real_terminal
 
int m_new_level
 
int m_old_level
 

Constructor & Destructor Documentation

◆ ChangeTerminalLevel()

ChangeTerminalLevel::ChangeTerminalLevel ( TerminalStrip strip,
const QWeakPointer< RealTerminal > &  real_terminal,
int  level,
QUndoCommand *  parent = nullptr 
)

Member Function Documentation

◆ redo()

void ChangeTerminalLevel::redo ( )
override

◆ undo()

void ChangeTerminalLevel::undo ( )
override

Member Data Documentation

◆ m_new_level

int ChangeTerminalLevel::m_new_level
private

◆ m_old_level

int ChangeTerminalLevel::m_old_level
private

◆ m_real_terminal

QWeakPointer<RealTerminal> ChangeTerminalLevel::m_real_terminal
private

◆ m_strip

QPointer<TerminalStrip> ChangeTerminalLevel::m_strip
private

The documentation for this class was generated from the following files: