summaryrefslogtreecommitdiffstats
path: root/torrentwidget.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2016-10-01 14:03:24 +0200
committerArno <arno@disconnect.de>2016-10-01 14:03:24 +0200
commit033be9e16598f90d4d86574baf0e00e49763e29c (patch)
tree69a9dcc2fa1c0c53b8ab961a421d571ec30f822b /torrentwidget.h
parentb435f1ecee2202677de3f6fbc294b95a85d4956d (diff)
downloadShemovCleaner-033be9e16598f90d4d86574baf0e00e49763e29c.tar.gz
ShemovCleaner-033be9e16598f90d4d86574baf0e00e49763e29c.tar.bz2
ShemovCleaner-033be9e16598f90d4d86574baf0e00e49763e29c.zip
Add function guessSubtitle
Guess the subtitle from the torrent filename. It's more or less an arbitrary set of strings and regexes that can't be configured.
Diffstat (limited to 'torrentwidget.h')
-rw-r--r--torrentwidget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/torrentwidget.h b/torrentwidget.h
index b66fa64..d672398 100644
--- a/torrentwidget.h
+++ b/torrentwidget.h
@@ -47,6 +47,7 @@ class TorrentWidget : public QWidget {
void searchFile();
void fileSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
void selectFirst();
+ void guessSubtitle();
protected:
virtual void keyPressEvent(QKeyEvent *e);
@@ -76,6 +77,7 @@ class TorrentWidget : public QWidget {
QAction *mTorrentInfoA;
QAction *mSelDirA;
QAction *mCopyFnToClipA;
+ QAction *mGuessSubtitleA;
FileSorter *mProxy;
TorrentDisplay *mTorrentDisplay;
};