Mantid
|
Auxiliary class to wrap the QLineEdit allowing warning to the user for invalid inputs. More...
Public Member Functions | |
QLineEdit * | lineEdit () |
provide acess to the QLineEdit More... | |
QLineEditWithErrorMark (QWidget *parent=nullptr) | |
constructor to join together the QLineEdit and an 'invisible'
| |
void | setError (const QString &error) |
if Error is not empty, it will make the * label visible and set the tooltip as the error. More... | |
~QLineEditWithErrorMark () override | |
virtual destructor to allow Qt to deallocate all objects More... | |
Private Attributes | |
QLineEdit * | _lineEdit |
QLabel * | m_validLbl |
Auxiliary class to wrap the QLineEdit allowing warning to the user for invalid inputs.
Definition at line 206 of file MantidWSIndexDialog.h.
|
explicit |
constructor to join together the QLineEdit and an 'invisible'
Definition at line 1236 of file MantidWSIndexDialog.cpp.
References _lineEdit, and m_validLbl.
|
inlineoverride |
virtual destructor to allow Qt to deallocate all objects
Definition at line 213 of file MantidWSIndexDialog.h.
|
inline |
provide acess to the QLineEdit
Definition at line 215 of file MantidWSIndexDialog.h.
Referenced by MantidQt::MantidWidgets::MantidWSIndexWidget::editedSpectraField(), MantidQt::MantidWidgets::MantidWSIndexWidget::editedWsField(), MantidQt::MantidWidgets::MantidWSIndexWidget::getAxisName(), MantidQt::MantidWidgets::MantidWSIndexWidget::getCustomLogValues(), MantidQt::MantidWidgets::MantidWSIndexWidget::initLogs(), MantidQt::MantidWidgets::MantidWSIndexWidget::initSpectraBox(), MantidQt::MantidWidgets::MantidWSIndexWidget::initWorkspaceBox(), MantidQt::MantidWidgets::MantidWSIndexWidget::onLogSelected(), MantidQt::MantidWidgets::MantidWSIndexWidget::onPlotOptionChanged(), MantidQt::MantidWidgets::MantidWSIndexWidget::plotRequested(), and MantidQt::MantidWidgets::MantidWSIndexWidget::validatePlotOptions().
void MantidQt::MantidWidgets::MantidWSIndexWidget::QLineEditWithErrorMark::setError | ( | const QString & | error | ) |
if Error is not empty, it will make the * label visible and set the tooltip as the error.
Definition at line 1249 of file MantidWSIndexDialog.cpp.
References error.
Referenced by MantidQt::MantidWidgets::MantidWSIndexWidget::editedSpectraField(), MantidQt::MantidWidgets::MantidWSIndexWidget::editedWsField(), MantidQt::MantidWidgets::MantidWSIndexWidget::plotRequested(), and MantidQt::MantidWidgets::MantidWSIndexWidget::validatePlotOptions().
|
private |
Definition at line 221 of file MantidWSIndexDialog.h.
Referenced by QLineEditWithErrorMark().
|
private |
Definition at line 222 of file MantidWSIndexDialog.h.
Referenced by QLineEditWithErrorMark().