NeTrainSim 0.1.1 beta
The Open-Source Network Trains Simulator
 
Loading...
Searching...
No Matches
ToggleButton Class Reference

#include <togglebutton.h>

Inheritance diagram for ToggleButton:

Public Member Functions

 ToggleButton (QWidget *parent=nullptr)
 
 ~ToggleButton ()
 
void setOnOffText (const QString &onText, const QString &offText)
 
bool isToggled () const
 

Constructor & Destructor Documentation

◆ ToggleButton()

ToggleButton::ToggleButton ( QWidget *  parent = nullptr)
explicit

◆ ~ToggleButton()

ToggleButton::~ToggleButton ( )

Member Function Documentation

◆ isToggled()

bool ToggleButton::isToggled ( ) const

◆ setOnOffText()

void ToggleButton::setOnOffText ( const QString &  onText,
const QString &  offText 
)