summaryrefslogtreecommitdiffstats
path: root/sminputdialog.h
blob: 5b80b9c2ffd8303eaad4d2baf1e9949b35434ee1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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