From f28832f5d30f0cede04e58dd9a0223c1b66940e7 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 1 Sep 2018 23:30:30 +0200 Subject: Remove playQt Not used, artifact from the first implementation of VideoViewer. --- fswidget.cpp | 20 -------------------- fswidget.h | 1 - 2 files changed, 21 deletions(-) diff --git a/fswidget.cpp b/fswidget.cpp index 1e7f2b6..7892ad6 100644 --- a/fswidget.cpp +++ b/fswidget.cpp @@ -625,26 +625,6 @@ void FSWidget::doPlay(){ } -void FSWidget::playQt(){ - QModelIndexList selected = mFileView->selectionModel()->selectedRows(); - if(selected.isEmpty()){ - return; - } - QStringList paths; - for(const QModelIndex &idx : selected){ - paths << idx.data(FullPathRole).toString(); - } - VideoViewer *wv = new VideoViewer; - QMediaPlaylist *pl = wv->player()->playlist(); - pl->clear(); - for(const QString &p : paths){ - pl->addMedia(QUrl::fromLocalFile(p)); - } - pl->setCurrentIndex(0); - wv->setVisible(true); - wv->player()->play(); -} - void FSWidget::selectFilter(){ bool ok; QString retval = QInputDialog::getText(this, tr("File selection by regex!"), tr("Select"), QLineEdit::Normal, "mkv$", &ok); diff --git a/fswidget.h b/fswidget.h index b2228d8..b5d8ffb 100644 --- a/fswidget.h +++ b/fswidget.h @@ -45,7 +45,6 @@ class FSWidget : public QWidget { void preview(); void playSelected(int count, QString player); void doPlay(); - void playQt(); void selectFilter(); void calculateSelectionChanged(); -- cgit v1.2.3-70-g09d2