From f686dd4c13215bb02e456456e512daed076028a7 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 11 Nov 2016 04:53:00 +0100 Subject: Energize! Fill the random file view with movies. --- randomtab.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'randomtab.h') diff --git a/randomtab.h b/randomtab.h index ccec1d6..12d98c2 100644 --- a/randomtab.h +++ b/randomtab.h @@ -10,6 +10,7 @@ #include #include +#include class QComboBox; class QPushButton; @@ -22,7 +23,8 @@ class QTextEdit; class RandomTab : public QWidget { Q_OBJECT public: - enum CustomRoles { IdRole = Qt::UserRole + 1 }; + enum CustomRoles { IdRole = Qt::UserRole + 1, SizeRole = Qt::UserRole + 2, DurationRole = Qt::UserRole + 3, DvdNoRole = Qt::UserRole + 4 }; + enum { ColumnCount = 6 }; explicit RandomTab(QWidget *parent = 0); public slots: @@ -34,12 +36,15 @@ class RandomTab : public QWidget { private: void setupGui(); + QStringList validDvdNos(); QComboBox *mGenre1; QComboBox *mGenre2; QComboBox *mGenre3; + QVector mGenreBoxes; QComboBox *mActor1; QComboBox *mActor2; QComboBox *mActor3; + QVector mActorBoxes; QLineEdit *mNumber; QPushButton *mSelect; QPushButton *mClear; @@ -51,6 +56,7 @@ class RandomTab : public QWidget { QStandardItemModel *mActorModel; QSortFilterProxyModel *mFileProxy; QSqlDatabase mDb; + QStringList mValidDvds; }; #endif // RANDOMTAB_H -- cgit v1.2.3-70-g09d2