Filters the chart widget for the resize event to modify this scenes
        rect.
        
        :param      object | <QObject>
                    event | <QEvent>

def eventFilter( self, object, event ):
        """
        Filters the chart widget for the resize event to modify this scenes
        rect.
        
        :param      object | <QObject>
                    event | <QEvent>
        """
        if ( event.type() != event.Resize ):
            return False
        
        size     = event.size()
        w        = size.width()
        h        = size.height()
        hpolicy  = Qt.ScrollBarAlwaysOff
        vpolicy  = Qt.ScrollBarAlwaysOff
        
        if ( self._minimumHeight != -1 and h < self._minimumHeight ):
            h      = self._minimumHeight
            vpolicy = Qt.ScrollBarAsNeeded
            
        if ( self._maximumHeight != -1 and self._maximumHeight < h ):
            h      = self._maximumHeight
            vpolicy = Qt.ScrollBarAsNeeded
        
        if ( self._minimumWidth != -1 and w < self._minimumWidth ):
            w      = self._minimumWidth
            hpolicy = Qt.ScrollBarAsNeeded
            
        if ( self._maximumWidth != -1 and self._maximumWidth < w ):
            w      = self._maximumWidth
            hpolicy = Qt.ScrollBarAsNeeded
        
        hruler = self.horizontalRuler()
        vruler = self.verticalRuler()
        
        hlen = hruler.minLength(Qt.Horizontal)
        vlen = hruler.minLength(Qt.Vertical)
        
        offset_w = 0
        offset_h = 0
        
#        if ( hlen > w ):
#            w        = hlen
#            hpolicy  = Qt.ScrollBarAlwaysOn
#            offset_h = 25
#        
#        if ( vlen > h ):
#            h        = vlen
#            vpolicy  = Qt.ScrollBarAlwaysOn
#            offset_w = 25
        
        self.setSceneRect(0, 0, w - offset_w, h - offset_h)
        object.setVerticalScrollBarPolicy(vpolicy)
        object.setHorizontalScrollBarPolicy(hpolicy)
        
        return False