diff options
author | Arno <arno@disconnect.de> | 2017-12-29 20:02:10 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2017-12-29 20:02:10 +0100 |
commit | 3361befbb399eb9afe0f3e19e2c38b6f707081fd (patch) | |
tree | 09ba6d0116164fa1323b73a588cdca8392c6c11e /filesystemwidget.cpp | |
parent | 0e1e44409e8cc225210f3e22f6deb18d62ee8298 (diff) | |
download | SheMov-3361befbb399eb9afe0f3e19e2c38b6f707081fd.tar.gz SheMov-3361befbb399eb9afe0f3e19e2c38b6f707081fd.tar.bz2 SheMov-3361befbb399eb9afe0f3e19e2c38b6f707081fd.zip |
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.
Diffstat (limited to 'filesystemwidget.cpp')
-rw-r--r-- | filesystemwidget.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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(); |