From f48e27a63c59840979dd848893ffba3faefdfdde Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 4 Apr 2018 18:52:09 +0200 Subject: 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. --- moviepropertiesdialog.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'moviepropertiesdialog.h') diff --git a/moviepropertiesdialog.h b/moviepropertiesdialog.h index 2d37b57..75aff95 100644 --- a/moviepropertiesdialog.h +++ b/moviepropertiesdialog.h @@ -7,6 +7,7 @@ class QLineEdit; class QRadioButton; class SmView; class QStandardItemModel; +class SmInputDialog; class MoviePropertiesDialog : public QDialog { public: @@ -18,6 +19,7 @@ class MoviePropertiesDialog : public QDialog { private: void setupDialog(); + void addItem(SmInputDialog *dlg, QStandardItemModel *model, QIcon icon); QLineEdit *mSeriesNameLE; QLineEdit *mSubtitleLE; QLineEdit *mCommentLE; @@ -30,6 +32,8 @@ class MoviePropertiesDialog : public QDialog { SmView *mGenreV; QStandardItemModel *mGenreM; int mSeriesPartsId; + SmInputDialog *mActorDlg; + SmInputDialog *mGenreDlg; }; #endif // MOVIEPROPERTIESDIALOG_H -- cgit v1.2.3-70-g09d2