diff options
Diffstat (limited to 'sminputdialog.h')
-rw-r--r-- | sminputdialog.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sminputdialog.h b/sminputdialog.h new file mode 100644 index 0000000..5b80b9c --- /dev/null +++ b/sminputdialog.h @@ -0,0 +1,22 @@ +#ifndef SMINPUTDIALOG_H +#define SMINPUTDIALOG_H + +#include <QDialog> + +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 |