mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
dist
This commit is contained in:
parent
8811756ce7
commit
a3ffbe45f9
@ -446,14 +446,14 @@ class Textbrowser(QLabel):
|
|||||||
guesswidth1 = gw * len(word["orig"])
|
guesswidth1 = gw * len(word["orig"])
|
||||||
tailx = wwww - guesslinehead
|
tailx = wwww - guesslinehead
|
||||||
pos1 = (
|
pos1 = (
|
||||||
tl1.x(),
|
tl1.x() + 1,
|
||||||
tl1.y(),
|
tl1.y(),
|
||||||
tailx - tl1.x(),
|
tailx - tl1.x() - 2,
|
||||||
heigth,
|
heigth,
|
||||||
)
|
)
|
||||||
xx = int(guesswidth1 - (tailx - tl1.x()))
|
xx = int(guesswidth1 - (tailx - tl1.x()))
|
||||||
guesslinehead = None
|
guesslinehead = None
|
||||||
pos2 = tl3.x() - xx, tl3.y(), xx, heigth
|
pos2 = tl3.x() + 1 - xx, tl3.y(), xx - 2, heigth
|
||||||
if (
|
if (
|
||||||
globalconfig["usesearchword"]
|
globalconfig["usesearchword"]
|
||||||
or globalconfig["usecopyword"]
|
or globalconfig["usecopyword"]
|
||||||
@ -499,9 +499,9 @@ class Textbrowser(QLabel):
|
|||||||
len(word["orig"])
|
len(word["orig"])
|
||||||
)
|
)
|
||||||
pos1 = (
|
pos1 = (
|
||||||
tl1.x(),
|
tl1.x() + 1,
|
||||||
tl1.y(),
|
tl1.y(),
|
||||||
tl2.x() - tl1.x(),
|
tl2.x() - tl1.x() - 2,
|
||||||
heigth,
|
heigth,
|
||||||
)
|
)
|
||||||
if (
|
if (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user