diff options
author | Arno <arno@disconnect.de> | 2016-11-11 05:53:30 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2016-11-11 05:53:30 +0100 |
commit | bed21d975fd36338d9d84be1306dd4720ef8c632 (patch) | |
tree | c3ca4e83ca15dd0b8eecbbefc03363af5ca98d27 | |
parent | 929a4bc23baf083effd11ec685f912f8b51591ff (diff) | |
download | SheMov-bed21d975fd36338d9d84be1306dd4720ef8c632.tar.gz SheMov-bed21d975fd36338d9d84be1306dd4720ef8c632.tar.bz2 SheMov-bed21d975fd36338d9d84be1306dd4720ef8c632.zip |
Implement GUI elements for playing movies
RotzPeng! He who doeth not find the button of his choice is not worthy!
-rw-r--r-- | randomtab.cpp | 19 | ||||
-rw-r--r-- | randomtab.h | 4 |
2 files changed, 23 insertions, 0 deletions
diff --git a/randomtab.cpp b/randomtab.cpp index c704110..5f0245f 100644 --- a/randomtab.cpp +++ b/randomtab.cpp @@ -102,12 +102,23 @@ void RandomTab::setupGui(){ actionL->addWidget(mSelect, 1, 0, 2, 0); actionBox->setLayout(actionL); + QGroupBox *playBox = new QGroupBox(tr("Play")); + mPlayAll = new QPushButton(QIcon(":/gaping_ass.png"), tr("Play All")); + connect(mPlayAll, SIGNAL(clicked()), this, SLOT(playAll())); + mPlaySelected = new QPushButton(QIcon(":/chastity_belt.png"), tr("Play Selected")); + connect(mPlaySelected, SIGNAL(clicked()), this, SLOT(playSelected())); + QVBoxLayout *playL = new QVBoxLayout; + playL->addWidget(mPlaySelected); + playL->addWidget(mPlayAll); + playBox->setLayout(playL); + QWidget *leftWidget = new QWidget; QVBoxLayout *lwL = new QVBoxLayout; lwL->addWidget(numBox); lwL->addWidget(genreBox); lwL->addWidget(actorBox); lwL->addWidget(actionBox); + lwL->addWidget(playBox); lwL->addStretch(); leftWidget->setLayout(lwL); @@ -380,6 +391,14 @@ void RandomTab::select(){ } } +void RandomTab::playAll(){ + +} + +void RandomTab::playSelected(){ + +} + void RandomTab::logMessage(const QString &msg){ QDateTime now = QDateTime::currentDateTime(); QString msg1 = QString("[%1] %2").arg(now.toString()).arg(msg); diff --git a/randomtab.h b/randomtab.h index a4917a0..a66ee10 100644 --- a/randomtab.h +++ b/randomtab.h @@ -33,6 +33,8 @@ class RandomTab : public QWidget { void clearAll(); void refreshComboboxes(); void select(); + void playAll(); + void playSelected(); void logMessage(const QString &msg); private: @@ -52,6 +54,8 @@ class RandomTab : public QWidget { QPushButton *mSelect; QPushButton *mClear; QPushButton *mRefresh; + QPushButton *mPlaySelected; + QPushButton *mPlayAll; QTreeView *mFileView; QTextEdit *mLog; QStandardItemModel *mFileModel; |