// For license of this file, see <project-root-folder>/LICENSE.md.

#ifndef LINEEDITWITHSTATUS_H
#define LINEEDITWITHSTATUS_H

#include "gui/widgetwithstatus.h"

#include "gui/baselineedit.h"

class LineEditWithStatus : public WidgetWithStatus {
  Q_OBJECT

  public:
    explicit LineEditWithStatus(QWidget* parent = nullptr);

    // Access to line edit.
    BaseLineEdit* lineEdit() const;
};

inline BaseLineEdit* LineEditWithStatus::lineEdit() const {
  return static_cast<BaseLineEdit*>(m_wdgInput);
}

#endif // LINEEDITWITHSTATUS_H
