summaryrefslogtreecommitdiffstats
path: root/fswidget.cpp
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2018-09-01 23:30:30 +0200
committerArno <arno@disconnect.de>2018-09-01 23:30:30 +0200
commitf28832f5d30f0cede04e58dd9a0223c1b66940e7 (patch)
treea7eddd06a18bd1a1f33a91f903f16d84891a01db /fswidget.cpp
parente9e54f8ff28f4bf7365ae74c0ba51c96d7938638 (diff)
downloadSheMov-f28832f5d30f0cede04e58dd9a0223c1b66940e7.tar.gz
SheMov-f28832f5d30f0cede04e58dd9a0223c1b66940e7.tar.bz2
SheMov-f28832f5d30f0cede04e58dd9a0223c1b66940e7.zip
Remove playQt
Not used, artifact from the first implementation of VideoViewer.
Diffstat (limited to 'fswidget.cpp')
-rw-r--r--fswidget.cpp20
1 files changed, 0 insertions, 20 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);