Overloads the paint event for this group box if it is currently
        collpased.
        
        :param      event | <QPaintEvent>

def paintEvent( self, event ):
        """
        Overloads the paint event for this group box if it is currently
        collpased.
        
        :param      event | <QPaintEvent>
        """
        if ( self.isCollapsed() ):
            self.setFlat(True)
        
        elif ( self.isCollapsible() ):
            self.setFlat(False)
            
        super(XGroupBox, self).paintEvent(event)