Logo Search packages:      
Sourcecode: hgview version File versions  Download package

def hgviewlib::qt4::hgrepoview::RevDisplay::anchorClicked (   self,
  qurl 
)

Callback called when a link is clicked in the text browser

Definition at line 292 of file hgrepoview.py.

00292                                  :
        """
        Callback called when a link is clicked in the text browser
        """
        rev = str(qurl.toString())
        if rev.startswith('diff_'):
            self.diffrev = int(rev[5:])
            self.refreshDisplay()
            # TODO: emit a signal to recompute the diff
            self.emit(SIGNAL('parentRevisionSelected'), self.diffrev)
        else:            
            self.emit(SIGNAL('revisionSelected'), int(rev))

    def setDiffRevision(self, rev):


Generated by  Doxygen 1.6.0   Back to index