From 033be9e16598f90d4d86574baf0e00e49763e29c Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 1 Oct 2016 14:03:24 +0200 Subject: 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. --- torrentwidget.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'torrentwidget.h') 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; }; -- cgit v1.2.3-70-g09d2