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.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'filesystemwidget.h') diff --git a/filesystemwidget.h b/filesystemwidget.h index 6b45308..27c366f 100644 --- a/filesystemwidget.h +++ b/filesystemwidget.h @@ -61,7 +61,8 @@ class FilesystemWidget : public QWidget { void toClipboard(int clipmode); void fromClipboard(); void renameFile(); - void playSelected(const QString &player = QString()); + void playSelectedWithDefault(); + void playSelected(const QString &player); void playSelectedRepeat(int times); void playSelectedInfinite(); void readSettings(); @@ -75,6 +76,7 @@ class FilesystemWidget : public QWidget { void unpack(); void selectUnpackDir(); void centerCurrent(); + void resizeFileView(); protected: void keyPressEvent(QKeyEvent *e); @@ -83,7 +85,6 @@ class FilesystemWidget : public QWidget { void dirExpanded(const QModelIndex &idx); void dirCollapsed(const QModelIndex &idx); void fileEditorClosed(const QModelIndex &idx); - void resizeFileView(); private: void copyFiles(const QStringList &files, const QString &dest); -- cgit v1.2.3-70-g09d2