diff options
author | Arno <arno@disconnect.de> | 2016-11-11 04:53:00 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2016-11-11 04:53:00 +0100 |
commit | f686dd4c13215bb02e456456e512daed076028a7 (patch) | |
tree | b9095c6d037856e610e189f87acaeebbbfbee2e9 /randomtab.h | |
parent | ce0d37ac854cb7102f0476e837b252cb0c127876 (diff) | |
download | SheMov-f686dd4c13215bb02e456456e512daed076028a7.tar.gz SheMov-f686dd4c13215bb02e456456e512daed076028a7.tar.bz2 SheMov-f686dd4c13215bb02e456456e512daed076028a7.zip |
Energize!
Fill the random file view with movies.
Diffstat (limited to 'randomtab.h')
-rw-r--r-- | randomtab.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/randomtab.h b/randomtab.h index ccec1d6..12d98c2 100644 --- a/randomtab.h +++ b/randomtab.h @@ -10,6 +10,7 @@ #include <QWidget> #include <QSqlDatabase> +#include <QVector> 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<QComboBox*> mGenreBoxes; QComboBox *mActor1; QComboBox *mActor2; QComboBox *mActor3; + QVector<QComboBox*> 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 |