blob: 4f2eb7e2b8e919dac2ccaf365af6e86aa23572cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef SMINPUTDIALOG_H
#define SMINPUTDIALOG_H
#include <QDialog>
#include <QLineEdit>
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
|