From eb65464ccdfae3458dd91be3bd6c0b7ee2ada7fa Mon Sep 17 00:00:00 2001 From: Arno Date: Mon, 3 Oct 2016 04:26:43 +0200 Subject: Selections, selections... Remember selected items after refreshing the torrent view. Also correctly! select the first torrent on startup. --- torrentwidget.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'torrentwidget.h') diff --git a/torrentwidget.h b/torrentwidget.h index d672398..2288e60 100644 --- a/torrentwidget.h +++ b/torrentwidget.h @@ -60,12 +60,15 @@ class TorrentWidget : public QWidget { void writeHeaderData(); void readSettings(); void writeSettings(); + void rememberSelection(); + void restoreSelection(); QAction *createSeparator(); QLineEdit *mDir; QPushButton *mSelDir; QLineEdit *mSearchTorrents; QPushButton *mDoSearchTorrents; QString mExt; + QStringList mSelection; QStandardItemModel *mModel; QTreeView *mFileView; QToolBar *mToolBar; -- cgit v1.2.3-70-g09d2