From af3ad3b091533c229eff582e508fb0545bbd350b Mon Sep 17 00:00:00 2001 From: Urban Wallasch Date: Wed, 23 Jun 2021 14:55:18 +0200 Subject: [PATCH] * Disabled auto-spacing of result tiles in KanjiDic. --- kanjidic.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/kanjidic.py b/kanjidic.py index d461f98..8cf646f 100755 --- a/kanjidic.py +++ b/kanjidic.py @@ -387,16 +387,12 @@ class zFlowLayout(QLayout): iszhint = self.itemList[0].widget().sizeHint() iwidth = iszhint.width() iheight = iszhint.height() - ngaps = int(right / iwidth) - gap = 0 if ngaps < 1 else int((right % iwidth) / ngaps) for i in range(self.count()): nextX = x + iwidth if nextX > right: x = rect.x() y = y + iheight - nextX = x + iwidth + gap - else: - nextX += gap + nextX = x + iwidth if not testonly: self.itemList[i].setGeometry(QRect(QPoint(x, y), iszhint)) x = nextX -- 2.30.2