mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
...
This commit is contained in:
parent
1edd98e2d0
commit
852d944004
@ -231,7 +231,7 @@ class AnkiWindow(QWidget):
|
|||||||
else:
|
else:
|
||||||
collect.append(hira["orig"])
|
collect.append(hira["orig"])
|
||||||
example = "".join(collect)
|
example = "".join(collect)
|
||||||
ruby = self.ruby
|
ruby = self.zhuyinedit.toPlainText()
|
||||||
dictionaryInfo = []
|
dictionaryInfo = []
|
||||||
dictionaryContent = {}
|
dictionaryContent = {}
|
||||||
for _ in dictionarys:
|
for _ in dictionarys:
|
||||||
@ -442,6 +442,7 @@ class AnkiWindow(QWidget):
|
|||||||
self.viewimagelabel = pixmapviewer()
|
self.viewimagelabel = pixmapviewer()
|
||||||
self.editpath.textChanged.connect(self.wrappedpixmap)
|
self.editpath.textChanged.connect(self.wrappedpixmap)
|
||||||
self.example = FQPlainTextEdit()
|
self.example = FQPlainTextEdit()
|
||||||
|
self.zhuyinedit = FQPlainTextEdit()
|
||||||
self.example.hiras = None
|
self.example.hiras = None
|
||||||
|
|
||||||
def __():
|
def __():
|
||||||
@ -511,6 +512,11 @@ class AnkiWindow(QWidget):
|
|||||||
),
|
),
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
|
getboxlayout(
|
||||||
|
[LLabel("注音"), self.zhuyinedit],
|
||||||
|
QVBoxLayout,
|
||||||
|
margin0=True,
|
||||||
|
),
|
||||||
getboxlayout(
|
getboxlayout(
|
||||||
[LLabel("例句"), self.example],
|
[LLabel("例句"), self.example],
|
||||||
QVBoxLayout,
|
QVBoxLayout,
|
||||||
@ -619,9 +625,11 @@ class AnkiWindow(QWidget):
|
|||||||
def reset(self, text):
|
def reset(self, text):
|
||||||
self.currentword = text
|
self.currentword = text
|
||||||
if text and len(text):
|
if text and len(text):
|
||||||
self.ruby = self.makerubyhtml(gobject.baseobject.parsehira(text))
|
self.zhuyinedit.setPlainText(
|
||||||
|
self.makerubyhtml(gobject.baseobject.parsehira(text))
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
self.ruby = ""
|
self.zhuyinedit.clear()
|
||||||
self.editpath.clear()
|
self.editpath.clear()
|
||||||
self.audiopath.clear()
|
self.audiopath.clear()
|
||||||
self.audiopath_sentence.clear()
|
self.audiopath_sentence.clear()
|
||||||
|
@ -29,7 +29,7 @@ include(generate_product_version)
|
|||||||
|
|
||||||
set(VERSION_MAJOR 5)
|
set(VERSION_MAJOR 5)
|
||||||
set(VERSION_MINOR 38)
|
set(VERSION_MINOR 38)
|
||||||
set(VERSION_PATCH 3)
|
set(VERSION_PATCH 4)
|
||||||
|
|
||||||
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