Workspace 6.21.5
Public Slots | Signals | Public Member Functions | Protected Member Functions | Properties | List of all members
PropertySetterBool Class Reference

#include <Workspace/Widgets/propertysetterbool.h>

Inheritance diagram for PropertySetterBool:
[legend]

Public Slots

void resetValue ()
 
void setValue (bool val)
 
void toggle ()
 
- Public Slots inherited from PropertySetter
void setPropertyName (const QString &name)
 
void updateProperty ()
 

Signals

void valueChanged (bool val)
 
- Signals inherited from PropertySetter
void propertyNameChanged (QString newName)
 
void propertyUpdated ()
 

Public Member Functions

 PropertySetterBool (QWidget *parent=nullptr)
 
bool getValue () const
 
- Public Member Functions inherited from PropertySetter
const QString & getPropertyName () const
 

Protected Member Functions

QVariant getValueAsVariant () const override
 
void notifyPropertyUpdate () override
 
- Protected Member Functions inherited from PropertySetter
 PropertySetter (QWidget *parent=nullptr)
 
virtual QVariant getValueAsVariant () const =0
 
virtual void notifyPropertyUpdate ()=0
 

Properties

bool value
 
- Properties inherited from PropertySetter
QString propertyName
 

Constructor & Destructor Documentation

◆ PropertySetterBool()

PropertySetterBool ( QWidget *  parent = nullptr)

Member Function Documentation

◆ getValue()

bool getValue ( ) const

◆ getValueAsVariant()

QVariant getValueAsVariant ( ) const
overrideprotectedvirtual

This function will be called by updateProperty() if a property name has been set. Note that getValueAsVariant() will not be called by updateProperty() if the property name is empty, but notifyPropertyUpdate() will.

Implements PropertySetter.

◆ notifyPropertyUpdate()

void notifyPropertyUpdate ( )
overrideprotectedvirtual

Subclasses must implement this function to emit a valueChanged() signal with the appropriate parameter type. Since this base class only knows about QVariant, it cannot emit this signal for itself when updateProperty() is called, hence why subclasses must do this instead. The notifyPropertyUpdate() function will always be called exactly once by each call to updateProperty().

Implements PropertySetter.

◆ resetValue

void resetValue ( )
slot

◆ setValue

void setValue ( bool  val)
slot

◆ toggle

void toggle ( )
slot

◆ valueChanged

void valueChanged ( bool  val)
signal

Property Documentation

◆ value

bool value
readwrite