44 const QString& description,
46 const char* changed_slot,
48 :
BoolProperty(name, default_value, description, parent, changed_slot, receiver)
100 return Qt::ItemIsSelectable;
virtual bool setValue(const QVariant &new_value)
Set the new value for this property. Returns true if the new value is different from the old value...
bool setValue(const QVariant &new_value) override
A single element of a property tree, with a name, value, description, and possibly children...
virtual void setName(const QString &name)
Set the name.
void unsetVisibilityBits(uint32_t bits)
DisplayVisibilityProperty(uint32_t vis_bit, Display *display, const QString &name=QString(), bool default_value=false, const QString &description=QString(), Property *parent=nullptr, const char *changed_slot=nullptr, QObject *receiver=nullptr)
virtual Qt::ItemFlags getViewFlags(int column) const
Return item flags appropriate for the given column (0 or 1) for this Property.
virtual QString getName() const
Return the name of this Property as a QString.
~DisplayVisibilityProperty() override
void setVisibilityBits(uint32_t bits)
Qt::ItemFlags getViewFlags(int column) const override
Return item flags appropriate for the given column (0 or 1) for this Property.
bool isEnabled() const
Return true if this Display is enabled, false if not.
Property specialized to provide getter for booleans.
bool getBool() const override
virtual bool getBool() const