Commits

Yuya Nishihara  committed 920303b

ref

  • Participants
  • Parent commits 34cab22

Comments (0)

Files changed (1)

File graphdele-sizehint.diff

 # HG changeset patch
 # Date 1395569831 -32400
-# Parent b6a214d990313b8b222fc12abbde06296f949961
+# Parent f710683dbe4fc763d6bead8cccb203d69d47b382
 
-diff --git a/tortoisehg/hgqt/graphdelegate.py b/tortoisehg/hgqt/graphdelegate.py
---- a/tortoisehg/hgqt/graphdelegate.py
-+++ b/tortoisehg/hgqt/graphdelegate.py
-@@ -187,8 +187,8 @@ class GraphDelegate(QStyledItemDelegate)
+diff --git a/tortoisehg/hgqt/repoview.py b/tortoisehg/hgqt/repoview.py
+--- a/tortoisehg/hgqt/repoview.py
++++ b/tortoisehg/hgqt/repoview.py
+@@ -593,9 +593,9 @@ class GraphDelegate(QStyledItemDelegate)
              circle(symbolsize)
  
      def sizeHint(self, option, index):
 -            return QPixmap(graph).size()
 +        gnode = index.data(repomodel.GraphNodeRole).toPyObject()
 +        if gnode:
-+            return QSize(self.col2x(gnode.cols) + 10, self.rowheight)
++            return QSize(self.col2x(gnode.cols), self.rowheight)
          else:
              return QSize(0, 0)
+