#ifndef SMINPUTDIALOG_H #define SMINPUTDIALOG_H #include #include class QLineEdit; class QCompleter; class SmInputDialog : public QDialog { public: explicit SmInputDialog(const QString &label, QWidget *parent = nullptr); void setText(QString &text); const QString text() const { return mLE->text(); } void setCompleter(QCompleter *completer); private: void setupDialog(); QLineEdit *mLE; QCompleter *mCompleter; }; #endif // SMINPUTDIALOG_H