bool CheckedWidget::check() const
{
+ // Ignore if widget is disabled.
+ if (!input_->isEnabled())
+ return true;
+
bool const valid = input_->hasAcceptableInput();
// Visual feedback.
setValid(input_, valid);
}
-bool InsetParamsWidget::checkWidgets() const
+bool InsetParamsWidget::checkWidgets(bool) const
{
bool valid = true;
Q_FOREACH(CheckedWidget const & le, checked_widgets_)