code: def adjustMargins(self):
          
          y = 0
          height = 0
          if self._titleLabel.text():
              height += self._titleLabel.height() + 3
              y += height
  
          if self._subTitleLabel.text():
              self._subTitleLabel.move(0, y)
              height += self._subTitleLabel.height() + 3
  
          self.setContentsMargins(0, height, 0, 0)
docs: Adjusts the margins to incorporate enough room for the widget's title and sub-title.