docs: def closeContentsWidget( self ):
          """
          Closes the current contents widget.
          """
          widget = self.currentContentsWidget()
          if ( not widget ):
              return
              
          widget.close()
          widget.setParent(None)
          widget.deleteLater()