docs: def paintEvent(self, event):
          """
          Overloads the paint event to support rendering of hints if there are
          no items in the tree.
          
          :param      event | <QPaintEvent>
          """
          super(XTextEdit, self).paintEvent(event)
          
          if self.document().isEmpty() and self.hint():
              text    = self.hint()
              rect    = self.rect()
              
              # modify the padding on the rect
              rect.setX(4)
              rect.setY(4)
              align = int(Qt.AlignLeft | Qt.AlignTop)
              
              # setup the coloring options
              clr = self.hintColor()
              
              # paint the hint
              with XPainter(self.viewport()) as painter:
                  painter.setPen(clr)
                  painter.drawText(rect, align | Qt.TextWordWrap, text)