mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
fix
This commit is contained in:
parent
2af907a048
commit
de8c104672
@ -486,37 +486,22 @@ class TextBrowser(QWidget, dataget):
|
|||||||
|
|
||||||
if text[i] != "\n":
|
if text[i] != "\n":
|
||||||
subtext[-1] += text[i]
|
subtext[-1] += text[i]
|
||||||
used = set()
|
|
||||||
collects = []
|
collects = []
|
||||||
for i in range(len(subtext)):
|
for i in range(len(subtext)):
|
||||||
|
|
||||||
finded = -1
|
if i >= len(self.iteryinyinglabelsave[iter_context_class]):
|
||||||
for j in range(len(self.iteryinyinglabelsave[iter_context_class])):
|
self.iteryinyinglabelsave[iter_context_class].append(
|
||||||
if j in used:
|
self.currentclass(self.toplabel2)
|
||||||
continue
|
)
|
||||||
if (
|
_ = self.iteryinyinglabelsave[iter_context_class][i]
|
||||||
self.iteryinyinglabelsave[iter_context_class][j].text()
|
if _.text() != subtext[i]:
|
||||||
== subtext[i]
|
|
||||||
):
|
|
||||||
finded = j
|
|
||||||
used.add(j)
|
|
||||||
break
|
|
||||||
if finded >= 0:
|
|
||||||
_ = self.iteryinyinglabelsave[iter_context_class][finded]
|
|
||||||
_.move(subpos[i].x(), subpos[i].y() + self.labeloffset_y)
|
|
||||||
_.show()
|
|
||||||
else:
|
|
||||||
if i >= len(self.iteryinyinglabelsave[iter_context_class]):
|
|
||||||
self.iteryinyinglabelsave[iter_context_class].append(
|
|
||||||
self.currentclass(self.toplabel2)
|
|
||||||
)
|
|
||||||
_ = self.iteryinyinglabelsave[iter_context_class][i]
|
|
||||||
_.setColor(color)
|
_.setColor(color)
|
||||||
_.setText(subtext[i])
|
_.setText(subtext[i])
|
||||||
_.setFont(font)
|
_.setFont(font)
|
||||||
_.adjustSize()
|
_.adjustSize()
|
||||||
_.move(subpos[i].x(), subpos[i].y() + self.labeloffset_y)
|
_.move(subpos[i].x(), subpos[i].y() + self.labeloffset_y)
|
||||||
_.show()
|
_.show()
|
||||||
|
|
||||||
self.textcursor.setPosition(pos)
|
self.textcursor.setPosition(pos)
|
||||||
self.textbrowser.setTextCursor(self.textcursor)
|
self.textbrowser.setTextCursor(self.textcursor)
|
||||||
tl1 = self.textbrowser.cursorRect(self.textcursor).topLeft()
|
tl1 = self.textbrowser.cursorRect(self.textcursor).topLeft()
|
||||||
|
@ -29,7 +29,7 @@ include(generate_product_version)
|
|||||||
|
|
||||||
set(VERSION_MAJOR 5)
|
set(VERSION_MAJOR 5)
|
||||||
set(VERSION_MINOR 35)
|
set(VERSION_MINOR 35)
|
||||||
set(VERSION_PATCH 7)
|
set(VERSION_PATCH 8)
|
||||||
|
|
||||||
add_library(pch pch.cpp)
|
add_library(pch pch.cpp)
|
||||||
target_precompile_headers(pch PUBLIC pch.h)
|
target_precompile_headers(pch PUBLIC pch.h)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user