rssguard/src/librssguard/gui/baselineedit.h
2020-05-04 14:20:56 +02:00

29 lines
566 B
C++

// For license of this file, see <project-root-folder>/LICENSE.md.
#ifndef BASELINEEDIT_H
#define BASELINEEDIT_H
#include <QLineEdit>
class BaseLineEdit : public QLineEdit {
Q_OBJECT
public:
// Constructors and destructors.
explicit BaseLineEdit(QWidget* parent = nullptr);
virtual ~BaseLineEdit() = default;
public slots:
void submit(const QString& text);
protected:
void keyPressEvent(QKeyEvent* event);
signals:
// Emitted if user hits ENTER button.
void submitted(const QString& text);
};
#endif // BASELINEEDIT_H