* Disabled auto-spacing of result tiles in KanjiDic.
authorUrban Wallasch <urban.wallasch@freenet.de>
Wed, 23 Jun 2021 12:55:18 +0000 (14:55 +0200)
committerUrban Wallasch <urban.wallasch@freenet.de>
Wed, 23 Jun 2021 12:55:18 +0000 (14:55 +0200)
kanjidic.py

index d461f98291614deb171e21bd9a806ef118ffb432..8cf646fe0d710208cefd87d48d495edbd65e6420 100755 (executable)
@@ -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