188 def getPreferences(self, key): |
188 def getPreferences(self, key): |
189 """ |
189 """ |
190 Public method to retrieve the various settings. |
190 Public method to retrieve the various settings. |
191 |
191 |
192 @param key the key of the value to get |
192 @param key the key of the value to get |
193 @param prefClass preferences class used as the storage area |
|
194 @return the requested setting |
193 @return the requested setting |
195 """ |
194 """ |
196 if key in ["MinimumDuration"]: |
195 if key in ["MinimumDuration"]: |
197 return int(Preferences.Prefs.settings.value("TimeTracker/" + key, |
196 return int(Preferences.Prefs.settings.value("TimeTracker/" + key, |
198 self.__defaults[key])) |
197 self.__defaults[key])) |