16#ifndef QGSTEXTEDITWRAPPER_H
17#define QGSTEXTEDITWRAPPER_H
24#include <QPlainTextEdit>
25#include <QTextBrowser>
59 QVariant
value()
const override;
73 void setHint(
const QString &hintText )
override;
78 bool valid()
const override;
85 void textChanged(
const QString &text );
88 bool mutable mInvalidJSON =
false;
90 void updateValues(
const QVariant &val,
const QVariantList & = QVariantList() )
override;
92 QTextBrowser *mTextBrowser =
nullptr;
93 QTextEdit *mTextEdit =
nullptr;
94 QPlainTextEdit *mPlainTextEdit =
nullptr;
95 QLineEdit *mLineEdit =
nullptr;
96 QString mPlaceholderText;
97 QString mPlaceholderTextBackup;
99 void setWidgetValue(
const QVariant &
value );
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
QgsTextEditWrapper(QgsVectorLayer *layer, int fieldIdx, QWidget *editor=nullptr, QWidget *parent=nullptr)
Constructor for QgsTextEditWrapper.
bool isInvalidJSON() const
Returns whether the text edit widget contains Invalid JSON.
QVariant value() const override
Will be used to access the widget's value.
Represents a vector layer which manages a vector based dataset.