Mercurial > hg > svcore
comparison base/RecentFiles.h @ 928:6a94bb528e9d warnfix_no_size_t
Remove size_t's, fix compiler warnings
author | Chris Cannam |
---|---|
date | Tue, 17 Jun 2014 13:52:07 +0100 |
parents | 3b8008d09541 |
children | ad5f892c0c4d |
comparison
equal
deleted
inserted
replaced
917:49618f39ff09 | 928:6a94bb528e9d |
---|---|
35 /** | 35 /** |
36 * Construct a RecentFiles object that saves and restores in the | 36 * Construct a RecentFiles object that saves and restores in the |
37 * given QSettings group and truncates when the given count of | 37 * given QSettings group and truncates when the given count of |
38 * strings is reached. | 38 * strings is reached. |
39 */ | 39 */ |
40 RecentFiles(QString settingsGroup = "RecentFiles", size_t maxCount = 10); | 40 RecentFiles(QString settingsGroup = "RecentFiles", int maxCount = 10); |
41 | 41 |
42 virtual ~RecentFiles(); | 42 virtual ~RecentFiles(); |
43 | 43 |
44 QString getSettingsGroup() const { return m_settingsGroup; } | 44 QString getSettingsGroup() const { return m_settingsGroup; } |
45 | 45 |
66 signals: | 66 signals: |
67 void recentChanged(); | 67 void recentChanged(); |
68 | 68 |
69 protected: | 69 protected: |
70 QString m_settingsGroup; | 70 QString m_settingsGroup; |
71 size_t m_maxCount; | 71 int m_maxCount; |
72 | 72 |
73 std::deque<QString> m_names; | 73 std::deque<QString> m_names; |
74 | 74 |
75 void read(); | 75 void read(); |
76 void write(); | 76 void write(); |