29 #ifndef PLAINTEXT_PROPERTY_H
30 #define PLAINTEXT_PROPERTY_H
32 #include <qcompilerdetection.h>
34 #include <QMetaObject>
37 #include <QStringList>
38 #include <QStyleOptionViewItem>
42 #include "../vproperty.h"
57 virtual QWidget *
createEditor(QWidget *parent,
const QStyleOptionViewItem &options,
58 const QAbstractItemDelegate *delegate) Q_DECL_OVERRIDE;
61 virtual QVariant
getEditorData(
const QWidget *editor)
const Q_DECL_OVERRIDE;
68 virtual void setSetting(
const QString &key,
const QVariant &value) Q_DECL_OVERRIDE;
69 virtual QVariant
getSetting(
const QString &key)
const Q_DECL_OVERRIDE;
72 virtual QString
type() const Q_DECL_OVERRIDE;
74 Q_REQUIRED_RESULT virtual
VProperty *
clone(
bool include_children = true,
75 VProperty *container =
nullptr) const Q_DECL_OVERRIDE;
77 virtual
void updateParent(const QVariant &value) Q_DECL_OVERRIDE;
87 virtual
bool eventFilter(QObject *
object, QEvent *event) Q_DECL_OVERRIDE;
Class for holding a plain text property.
void setReadOnly(bool readOnly)
virtual void updateParent(const QVariant &value) Q_DECL_OVERRIDE
virtual void setSetting(const QString &key, const QVariant &value) Q_DECL_OVERRIDE
setSetting Sets the settings.
virtual bool eventFilter(QObject *object, QEvent *event) Q_DECL_OVERRIDE
void setClearButtonEnable(bool value)
void setOsSeparator(bool separator)
int getTypeForParent() const
virtual QVariant getEditorData(const QWidget *editor) const Q_DECL_OVERRIDE
getEditorData Gets the data from the widget @oaram editor
virtual Q_REQUIRED_RESULT VProperty * clone(bool include_children=true, VProperty *container=nullptr) const Q_DECL_OVERRIDE
clone Clones this property
PlainTextProperty(const QString &name, const QMap< QString, QVariant > &settings)
virtual QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &options, const QAbstractItemDelegate *delegate) Q_DECL_OVERRIDE
createEditor Returns an editor widget, or NULL if it doesn't supply one
void setTypeForParent(int value)
virtual QString type() const Q_DECL_OVERRIDE
type Returns a string containing the type of the property.
virtual QStringList getSettingKeys() const Q_DECL_OVERRIDE
getSettingKeys Returns the list of keys of the property's settings.
virtual QVariant getSetting(const QString &key) const Q_DECL_OVERRIDE
getSetting Gets the settings.his function has to be implemented in a subclass in order to have an eff...