From 929a4bc23baf083effd11ec685f912f8b51591ff Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 11 Nov 2016 05:29:47 +0100 Subject: Read and write settings / SelectionBehavior Fixing selection behavior should have been a separate commit, but well... Set it to ExtendedSelection and SelectRows. --- randomtab.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'randomtab.h') diff --git a/randomtab.h b/randomtab.h index 12d98c2..a4917a0 100644 --- a/randomtab.h +++ b/randomtab.h @@ -26,6 +26,7 @@ class RandomTab : public QWidget { enum CustomRoles { IdRole = Qt::UserRole + 1, SizeRole = Qt::UserRole + 2, DurationRole = Qt::UserRole + 3, DvdNoRole = Qt::UserRole + 4 }; enum { ColumnCount = 6 }; explicit RandomTab(QWidget *parent = 0); + virtual ~RandomTab(); public slots: void setupModels(); @@ -36,6 +37,8 @@ class RandomTab : public QWidget { private: void setupGui(); + void writeSettings(); + void readSettings(); QStringList validDvdNos(); QComboBox *mGenre1; QComboBox *mGenre2; -- cgit v1.2.3-70-g09d2