diff options
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 |