Commits

Yuya Nishihara committed 6bf3c70

fin

Comments (0)

Files changed (3)

graphdele-paintdirect.diff

-# HG changeset patch
-# Date 1395570665 -32400
-# Parent b1e596faf2e09190bce56702406f12ea43000583
-
-diff --git a/tortoisehg/hgqt/repoview.py b/tortoisehg/hgqt/repoview.py
---- a/tortoisehg/hgqt/repoview.py
-+++ b/tortoisehg/hgqt/repoview.py
-@@ -446,29 +446,21 @@ class GraphDelegate(QStyledItemDelegate)
- 
-     def paint(self, painter, option, index):
-         QStyledItemDelegate.paint(self, painter, option, index)
--        graph = self.graphctx(index)
--        if graph:
--            # not grayed-out even if revisions are inactive
--            pix = QPixmap(graph)
--            dest = option.rect
--            src = QRect(0, 0, dest.width(), dest.height())
--            painter.drawPixmap(dest, pix, src)
-+        # not grayed-out even if revisions are inactive
-+        self.graphctx(painter, option.rect, index)
- 
--    def graphctx(self, index):
-+    def graphctx(self, painter, rect, index):
-         gnode = index.data(repomodel.GraphNodeRole).toPyObject()
--        w = self.col2x(gnode.cols)
--        h = self.rowheight
- 
--        pix = QPixmap(w, h)
--        pix.fill(QColor(0,0,0,0))
--        painter = QPainter(pix)
-+        painter.save()
-         try:
--            self._drawgraphctx(painter, index, gnode)
-+            painter.setClipRect(rect)
-+            painter.translate(rect.topLeft())
-+            self._drawgraphctx(painter, index, ctx, gnode)
-         finally:
--            painter.end()
--        return QVariant(pix)
-+            painter.restore()
- 
--    def _drawgraphctx(self, painter, index, gnode):
-+    def _drawgraphctx(self, painter, index, ctx, gnode):
-         h = self.rowheight
-         dot_y = h / 2
- 

repom-margin18px.diff

-# HG changeset patch
-# Parent b53032d022993890e5a7ae8632f3e5f82995cde1
-# Date 1402925335 -32400
-
-diff --git a/tortoisehg/hgqt/repomodel.py b/tortoisehg/hgqt/repomodel.py
---- a/tortoisehg/hgqt/repomodel.py
-+++ b/tortoisehg/hgqt/repomodel.py
-@@ -194,7 +194,7 @@ class HgRepoListModel(QAbstractTableMode
-         self.graph = None
-         self.timerHandle = None
-         self.dotradius = 8
--        self.rowheight = 20
-+        self.rowheight = self.dotradius * 2 + 2
-         self.rowcount = 0
-         self.repo = repo
-         self.revset = revset
-graphdele-paintdirect.diff
 graphdele-shadow-exp.diff
 graphdele-overpaint-exp.diff
 fv-chunkmsplit.diff
 fv-updatechunkpriv.diff
 fv-updatechunktrace.diff
 fv-chunkexcltrace.diff
-repom-margin18px.diff
 p4-debug.diff #+debug
 commit-msgtrace2.diff #+debug
 backdoor.diff