diff options
author | Arno <arno@disconnect.de> | 2018-09-01 23:30:30 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-09-01 23:30:30 +0200 |
commit | f28832f5d30f0cede04e58dd9a0223c1b66940e7 (patch) | |
tree | a7eddd06a18bd1a1f33a91f903f16d84891a01db | |
parent | e9e54f8ff28f4bf7365ae74c0ba51c96d7938638 (diff) | |
download | SheMov-f28832f5d30f0cede04e58dd9a0223c1b66940e7.tar.gz SheMov-f28832f5d30f0cede04e58dd9a0223c1b66940e7.tar.bz2 SheMov-f28832f5d30f0cede04e58dd9a0223c1b66940e7.zip |
Remove playQt
Not used, artifact from the first implementation of VideoViewer.
-rw-r--r-- | fswidget.cpp | 20 | ||||
-rw-r--r-- | fswidget.h | 1 |
2 files changed, 0 insertions, 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); @@ -45,7 +45,6 @@ class FSWidget : public QWidget { void preview(); void playSelected(int count, QString player); void doPlay(); - void playQt(); void selectFilter(); void calculateSelectionChanged(); |