![]() |
Workspace 6.21.5
|
#include <Workspace/Widgets/propertysetterstring.h>
Public Slots | |
void | resetValue () |
void | setValue (QString val) |
![]() | |
void | setPropertyName (const QString &name) |
void | updateProperty () |
Signals | |
void | valueChanged (QString val) |
![]() | |
void | propertyNameChanged (QString newName) |
void | propertyUpdated () |
Public Member Functions | |
PropertySetterString (QWidget *parent=nullptr) | |
QString | getValue () const |
![]() | |
const QString & | getPropertyName () const |
Protected Member Functions | |
QVariant | getValueAsVariant () const override |
void | notifyPropertyUpdate () override |
![]() | |
PropertySetter (QWidget *parent=nullptr) | |
virtual QVariant | getValueAsVariant () const =0 |
virtual void | notifyPropertyUpdate ()=0 |
Properties | |
QString | value |
![]() | |
QString | propertyName |
PropertySetterString | ( | QWidget * | parent = nullptr | ) |
QString getValue | ( | ) | 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.
|
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.
|
slot |
|
slot |
|
signal |
|
readwrite |