Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
MantidQt::MantidWidgets::MantidWSIndexWidget::QLineEditWithErrorMark Class Reference

Auxiliary class to wrap the QLineEdit allowing warning to the user for invalid inputs. More...

Inheritance diagram for MantidQt::MantidWidgets::MantidWSIndexWidget::QLineEditWithErrorMark:

Public Member Functions

QLineEdit * lineEdit ()
 provide acess to the QLineEdit More...
 
 QLineEditWithErrorMark (QWidget *parent=nullptr)
 constructor to join together the QLineEdit and an 'invisible'

  • label.
More...
 
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
 

Detailed Description

Auxiliary class to wrap the QLineEdit allowing warning to the user for invalid inputs.

Definition at line 206 of file MantidWSIndexDialog.h.

Constructor & Destructor Documentation

◆ QLineEditWithErrorMark()

MantidQt::MantidWidgets::MantidWSIndexWidget::QLineEditWithErrorMark::QLineEditWithErrorMark ( QWidget *  parent = nullptr)
explicit

constructor to join together the QLineEdit and an 'invisible'

  • label.

Definition at line 1236 of file MantidWSIndexDialog.cpp.

References _lineEdit, and m_validLbl.

◆ ~QLineEditWithErrorMark()

MantidQt::MantidWidgets::MantidWSIndexWidget::QLineEditWithErrorMark::~QLineEditWithErrorMark ( )
inlineoverride

virtual destructor to allow Qt to deallocate all objects

Definition at line 213 of file MantidWSIndexDialog.h.

Member Function Documentation

◆ lineEdit()

QLineEdit * MantidQt::MantidWidgets::MantidWSIndexWidget::QLineEditWithErrorMark::lineEdit ( )
inline

◆ setError()

void MantidQt::MantidWidgets::MantidWSIndexWidget::QLineEditWithErrorMark::setError ( const QString &  error)

Member Data Documentation

◆ _lineEdit

QLineEdit* MantidQt::MantidWidgets::MantidWSIndexWidget::QLineEditWithErrorMark::_lineEdit
private

Definition at line 221 of file MantidWSIndexDialog.h.

Referenced by QLineEditWithErrorMark().

◆ m_validLbl

QLabel* MantidQt::MantidWidgets::MantidWSIndexWidget::QLineEditWithErrorMark::m_validLbl
private

Definition at line 222 of file MantidWSIndexDialog.h.

Referenced by QLineEditWithErrorMark().


The documentation for this class was generated from the following files: