From 46b07f6021dda405f772e60ff8e2dcd4250d538c Mon Sep 17 00:00:00 2001 From: Dan Nixon Date: Thu, 26 Mar 2015 10:00:52 +0000 Subject: [PATCH] Add default parameters to validation indicators Refs #10903 --- .../inc/MantidQtCustomInterfaces/UserInputValidator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Code/Mantid/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/UserInputValidator.h b/Code/Mantid/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/UserInputValidator.h index 0a9c44070a14..8af0cac0c12f 100644 --- a/Code/Mantid/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/UserInputValidator.h +++ b/Code/Mantid/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/UserInputValidator.h @@ -54,9 +54,9 @@ namespace MantidQt UserInputValidator(); /// Check that the given QLineEdit field is not empty. - bool checkFieldIsNotEmpty(const QString & name, QLineEdit * field, QLabel * errorLabel); + bool checkFieldIsNotEmpty(const QString & name, QLineEdit * field, QLabel * errorLabel = NULL); /// Check that the given QLineEdit field is valid as per any validators it might have. - bool checkFieldIsValid(const QString & errorMessage, QLineEdit * field, QLabel * errorLabel); + bool checkFieldIsValid(const QString & errorMessage, QLineEdit * field, QLabel * errorLabel = NULL); /// Check that the given WorkspaceSelector is not empty. bool checkWorkspaceSelectorIsNotEmpty(const QString & name, WorkspaceSelector * workspaceSelector); /// Check that the given MWRunFiles widget has valid files.