Go to the documentation of this file.
   29 #ifndef INT_PROPERTY_H 
   30 #define INT_PROPERTY_H 
   59   template <
typename Func, 
typename R>
 
   62               const QString& description,
 
   68     connect(receiver, std::forward<Func>(changed_slot));
 
   72   template <
typename Func, 
typename P>
 
   75               const QString& description,
 
   80     connect(parent, std::forward<Func>(changed_slot));
 
   90   bool setValue(
const QVariant& new_value) 
override;
 
  116   QWidget* 
createEditor(QWidget* parent, 
const QStyleOptionViewItem& option) 
override;
 
  134 #endif // INT_PROPERTY_H 
  
virtual QVariant getValue() const
Return the value of this Property as a QVariant. If the value has never been set, an invalid QVariant...
QMetaObject::Connection connect(const QObject *receiver, const char *slot, Qt::ConnectionType type=Qt::AutoConnection)
Connect changed() signal to given slot of receiver.
A single element of a property tree, with a name, value, description, and possibly children.
bool setValue(const QVariant &new_value) override
Set the new value for this property. Returns true if the new value is different from the old value,...
IntProperty(const QString &name=QString(), int default_value=0, const QString &description=QString(), Property *parent=nullptr)
Constructor.
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option) override
Overridden to create a QSpinBox with the min and max set and with a signal/slot connection to setInt(...
void setInt(int new_value)
Set the value of this property to the given integer.
virtual int getInt() const
Return the internal property value as an integer.
IntProperty(const QString &name, int default_value, const QString &description, P *parent, Func &&changed_slot)
IntProperty(const QString &name, int default_value, const QString &description, Property *parent, Func &&changed_slot, const R *receiver)
Property specialized to provide max/min enforcement for integers.
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall 
autogenerated on Sun May 4 2025 02:31:26