29 #ifndef EDITABLE_ENUM_PROPERTY_H 30 #define EDITABLE_ENUM_PROPERTY_H 32 #include <QStringList> 52 const char *changed_slot = 0,
53 QObject* receiver = 0 );
56 virtual void addOption(
const QString& option );
60 const QStyleOptionViewItem& option );
66 virtual void setString(
const QString& str );
87 #endif // EDITABLE_ENUM_PROPERTY_H virtual void setString(const QString &str)
virtual void clearOptions()
A single element of a property tree, with a name, value, description, and possibly children...
virtual void addOption(const QString &option)
void addOptionStd(const std::string &option)
virtual QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option)
Create an editor widget to edit the value of this property.
EditableEnumProperty(const QString &name=QString(), const QString &default_value=QString(), const QString &description=QString(), Property *parent=0, const char *changed_slot=0, QObject *receiver=0)
void requestOptions(EditableEnumProperty *property_in_need_of_options)
requestOptions() is emitted each time createEditor() is called.
Property specialized for string values.
void sortOptions()
Sort the option strings.