def METHOD_NAME(self, name, caption, default, min_val, max_val, tooltip):
    """
    Convenience function to add an integer preference.
    """
    self.addWidget(IntPreferenceWidget(name, caption, default, min_val, max_val, tooltip, self._key))