Skip to content
Permalink
Browse files

Add docs and indentation

  • Loading branch information
stev-0 committed Dec 23, 2019
1 parent 7554408 commit 7226d3467ac620944c9b69dd478a437398dce2bb
@@ -295,6 +295,7 @@ void QgsTextEditWrapper::setWidgetValue( const QVariant &val )
}
}
else if ( val.type() == QVariant::Double && std::isnan( val.toDouble() ) )
{
v = QgsApplication::nullRepresentation();
}
else
@@ -59,6 +59,12 @@ class GUI_EXPORT QgsTextEditWrapper : public QgsEditorWidgetWrapper
public:
QVariant value() const override;
void showIndeterminateState() override;


/**
* Returns whether the text edit widget contains Invalid JSON
* \since QGIS 3.12
*/
bool isInvalidJSON();

/**
@@ -154,7 +154,8 @@ QValidator::State QgsFieldValidator::validate( QString &s, int &i ) const
{
return QDate::fromString( s, mDateFormat ).isValid() ? Acceptable : Intermediate;
}
else if ( mField.type() == QVariant::Map ) {
else if ( mField.type() == QVariant::Map )
{
return Acceptable;
}
else

0 comments on commit 7226d34

Please sign in to comment.
You can’t perform that action at this time.