diff options
author | Arno <arno@disconnect.de> | 2018-04-04 18:52:09 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-04-04 18:52:09 +0200 |
commit | f48e27a63c59840979dd848893ffba3faefdfdde (patch) | |
tree | 71f1b6c59c3f75a11f38c6a2c703faa6250d72aa /sminputdialog.h | |
parent | 89c3587b8768bb49d7f82aa845781ee485df8370 (diff) | |
download | SheMov-f48e27a63c59840979dd848893ffba3faefdfdde.tar.gz SheMov-f48e27a63c59840979dd848893ffba3faefdfdde.tar.bz2 SheMov-f48e27a63c59840979dd848893ffba3faefdfdde.zip |
MoviePropertiesDialog: implement add actors and genres
Only adds items to the view, doesn't do any changes to the database yet.
Had to implement a custom InputDialog, because the standard InputDialog
doesn't have a setter for the completer.
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 |