// For license of this file, see /LICENSE.md. #ifndef LINEEDITWITHSTATUS_H #define LINEEDITWITHSTATUS_H #include "gui/reusable/baselineedit.h" #include "gui/reusable/widgetwithstatus.h" #include class RSSGUARD_DLLSPEC 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(m_wdgInput); } class RSSGUARD_DLLSPEC TextEditWithStatus : public WidgetWithStatus { Q_OBJECT public: explicit TextEditWithStatus(QWidget* parent = nullptr); // Access to line edit. QPlainTextEdit* textEdit() const; }; inline QPlainTextEdit* TextEditWithStatus::textEdit() const { return static_cast(m_wdgInput); } #endif // LINEEDITWITHSTATUS_H