def testAutoload(self):
        """
        Checks to see if this item should begin the loading process.
        """
        tree = self.treeWidget()
        if not tree:
            return
        
        rect = tree.visualItemRect(self)
        if rect.isNull():
            return
        
        center = rect.center()
        if not tree.rect().contains(center):
            return
        
        self.startLoading()
        self._timer.stop()
def testAutoload ( self ) : tree = self . treeWidget ( ) if not tree : return rect = tree . visualItemRect ( self ) if rect . isNull ( ) : return center = rect . center ( ) if not tree . rect ( ) . contains ( center ) : return self . startLoading ( ) self . _timer . stop ( )
Checks to see if this item should begin the loading process.