From: Urban Wallasch Date: Wed, 23 Jun 2021 12:55:18 +0000 (+0200) Subject: * Disabled auto-spacing of result tiles in KanjiDic. X-Git-Tag: v0.1.0~61 X-Git-Url: https://git.packet-gain.de/?a=commitdiff_plain;h=af3ad3b091533c229eff582e508fb0545bbd350b;p=jiten-pai.git * Disabled auto-spacing of result tiles in KanjiDic. --- 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