summaryrefslogtreecommitdiffstats
path: root/filesystemwidget.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2017-12-29 20:02:10 +0100
committerArno <arno@disconnect.de>2017-12-29 20:02:10 +0100
commit3361befbb399eb9afe0f3e19e2c38b6f707081fd (patch)
tree09ba6d0116164fa1323b73a588cdca8392c6c11e /filesystemwidget.h
parent0e1e44409e8cc225210f3e22f6deb18d62ee8298 (diff)
downloadSheMov-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.h')
-rw-r--r--filesystemwidget.h5
1 files changed, 3 insertions, 2 deletions
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);