projects
/
jiten-pai.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e181af
)
* Disabled auto-spacing of result tiles in KanjiDic.
author
Urban Wallasch
<urban.wallasch@freenet.de>
Wed, 23 Jun 2021 12:55:18 +0000
(14:55 +0200)
committer
Urban Wallasch
<urban.wallasch@freenet.de>
Wed, 23 Jun 2021 12:55:18 +0000
(14:55 +0200)
kanjidic.py
patch
|
blob
|
history
diff --git
a/kanjidic.py
b/kanjidic.py
index d461f98291614deb171e21bd9a806ef118ffb432..8cf646fe0d710208cefd87d48d495edbd65e6420 100755
(executable)
--- 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