From bed21d975fd36338d9d84be1306dd4720ef8c632 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 11 Nov 2016 05:53:30 +0100 Subject: Implement GUI elements for playing movies RotzPeng! He who doeth not find the button of his choice is not worthy! --- randomtab.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'randomtab.cpp') 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); -- cgit v1.2.3-70-g09d2