From 3361befbb399eb9afe0f3e19e2c38b6f707081fd Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 29 Dec 2017 20:02:10 +0100 Subject: Massive code churn in shemov.cpp Converted everything to the type-safe connect syntax. That unearthed two minor problems with filesystemwidget.cpp: 1. We called a private SLOT in there from class SheMov. Dunno if it works with the old syntax. Anyway, I fixed it. 2. With the new syntax you can't call SLOTS with default arguments, so I had to introduce a helper slot playSelectedWithDefault Since I was already at it, I also replaced Q_FOREACH. --- filesystemwidget.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'filesystemwidget.cpp') diff --git a/filesystemwidget.cpp b/filesystemwidget.cpp index 7e3db24..5141c01 100644 --- a/filesystemwidget.cpp +++ b/filesystemwidget.cpp @@ -362,6 +362,10 @@ void FilesystemWidget::renameFile(){ } } +void FilesystemWidget::playSelectedWithDefault(){ + playSelected(QString()); +} + void FilesystemWidget::playSelected(const QString &player){ TimerHandler h(mFileModel->refreshTimer()); QStringList files = selectedFiles(); -- cgit v1.2.3-70-g09d2