return anError;
}
-QString ModuleBase_ModelWidget::getError() const
+QString ModuleBase_ModelWidget::getError(const bool theValueStateChecked) const
{
QString anError;
}
anError = QString::fromStdString(anErrorMsg);
- if (anError.isEmpty())
+ if (anError.isEmpty() && theValueStateChecked)
anError = getValueStateError();
return anError;
//! Returns the widget error, get it from the attribute validator and state of the widget
//! If the feature is correct, it returns an empty value
+ //! \param theValueStateChecked the boolean flag if the state of the widget should be checked
//! \return string value
- QString getError() const;
+ QString getError(const bool theValueStateChecked = true) const;
/// Set the given wrapped value to the current widget
/// This value should be processed in the widget according to the needs
setPoint(feature(), aPnt);
// if the validator of the control returns false, focus should not be switched
- if (getError().isEmpty())
+ if (getError(false).isEmpty())
emit focusOutWidget(this);
}
/// Width of the auxiliary line
inline static const double SKETCH_LINE_WIDTH_AUXILIARY()
{
- return 1;
+ return 2;
}
/// Width of the line