mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-28 08:04:13 +08:00
ui
This commit is contained in:
parent
29b6bb848b
commit
c22a7bf269
@ -636,23 +636,12 @@ class hookselect(closeashidewindow):
|
|||||||
|
|
||||||
self.userhooklayout = QHBoxLayout()
|
self.userhooklayout = QHBoxLayout()
|
||||||
self.vboxlayout.addLayout(self.userhooklayout)
|
self.vboxlayout.addLayout(self.userhooklayout)
|
||||||
self.userhook = QLineEdit()
|
|
||||||
self.userhooklayout.addWidget(self.userhook)
|
|
||||||
self.userhookinsert = LPushButton("插入特殊码")
|
|
||||||
self.userhookinsert.clicked.connect(self.inserthook)
|
|
||||||
self.userhooklayout.addWidget(self.userhookinsert)
|
|
||||||
|
|
||||||
self.userhookinsert = QPushButton(icon=qtawesome.icon("fa.question"))
|
|
||||||
self.userhookinsert.clicked.connect(lambda: dialog_showinfo(self))
|
|
||||||
self.userhooklayout.addWidget(self.userhookinsert)
|
|
||||||
|
|
||||||
self.userhookfind = LPushButton("搜索特殊码")
|
|
||||||
self.userhookfind.clicked.connect(self.findhook)
|
|
||||||
self.userhooklayout.addWidget(self.userhookfind)
|
|
||||||
|
|
||||||
|
self.searchtext = QLineEdit()
|
||||||
|
self.searchtext.textChanged.connect(self.searchtextfunc)
|
||||||
|
self.userhooklayout.addWidget(self.searchtext)
|
||||||
self.opensolvetextb = LPushButton("文本处理")
|
self.opensolvetextb = LPushButton("文本处理")
|
||||||
self.opensolvetextb.clicked.connect(self.opensolvetext)
|
self.opensolvetextb.clicked.connect(self.opensolvetext)
|
||||||
self.userhooklayout.addWidget(QLabel(" "))
|
|
||||||
self.userhooklayout.addWidget(self.opensolvetextb)
|
self.userhooklayout.addWidget(self.opensolvetextb)
|
||||||
|
|
||||||
self.settingbtn = LPushButton("游戏设置")
|
self.settingbtn = LPushButton("游戏设置")
|
||||||
@ -662,7 +651,6 @@ class hookselect(closeashidewindow):
|
|||||||
#################
|
#################
|
||||||
self.searchtextlayout = QHBoxLayout()
|
self.searchtextlayout = QHBoxLayout()
|
||||||
self.vboxlayout.addLayout(self.searchtextlayout)
|
self.vboxlayout.addLayout(self.searchtextlayout)
|
||||||
self.searchtext = QLineEdit()
|
|
||||||
__ = LPushButton("游戏适配")
|
__ = LPushButton("游戏适配")
|
||||||
__.clicked.connect(
|
__.clicked.connect(
|
||||||
lambda: gobject.baseobject.openlink(
|
lambda: gobject.baseobject.openlink(
|
||||||
@ -670,10 +658,21 @@ class hookselect(closeashidewindow):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
self.searchtextlayout.addWidget(__)
|
self.searchtextlayout.addWidget(__)
|
||||||
self.searchtextlayout.addWidget(self.searchtext)
|
|
||||||
self.searchtextbutton = LPushButton("搜索")
|
self.userhook = QLineEdit()
|
||||||
self.searchtextbutton.clicked.connect(self.searchtextfunc)
|
self.searchtextlayout.addWidget(self.userhook)
|
||||||
self.searchtextlayout.addWidget(self.searchtextbutton)
|
self.userhookinsert = LPushButton("插入特殊码")
|
||||||
|
self.userhookinsert.clicked.connect(self.inserthook)
|
||||||
|
self.searchtextlayout.addWidget(self.userhookinsert)
|
||||||
|
|
||||||
|
self.userhookinsert = QPushButton(icon=qtawesome.icon("fa.question"))
|
||||||
|
self.userhookinsert.clicked.connect(lambda: dialog_showinfo(self))
|
||||||
|
self.searchtextlayout.addWidget(self.userhookinsert)
|
||||||
|
|
||||||
|
self.userhookfind = LPushButton("搜索特殊码")
|
||||||
|
self.userhookfind.clicked.connect(self.findhook)
|
||||||
|
self.searchtextlayout.addWidget(self.userhookfind)
|
||||||
|
|
||||||
###################
|
###################
|
||||||
self.ttCombomodelmodel2 = LStandardItemModel()
|
self.ttCombomodelmodel2 = LStandardItemModel()
|
||||||
self.tttable2 = TableViewW()
|
self.tttable2 = TableViewW()
|
||||||
@ -774,9 +773,7 @@ class hookselect(closeashidewindow):
|
|||||||
hide = (searchtext not in res) or self.gethide(res)
|
hide = (searchtext not in res) or self.gethide(res)
|
||||||
self.tttable2.setRowHidden(_index, hide)
|
self.tttable2.setRowHidden(_index, hide)
|
||||||
|
|
||||||
def searchtextfunc(self):
|
def searchtextfunc(self, searchtext):
|
||||||
searchtext = self.searchtext.text()
|
|
||||||
|
|
||||||
# self.ttCombomodelmodel.blockSignals(True)
|
# self.ttCombomodelmodel.blockSignals(True)
|
||||||
try:
|
try:
|
||||||
for row in range(self.ttCombomodelmodel.rowCount()):
|
for row in range(self.ttCombomodelmodel.rowCount()):
|
||||||
|
@ -29,7 +29,7 @@ include(generate_product_version)
|
|||||||
|
|
||||||
set(VERSION_MAJOR 5)
|
set(VERSION_MAJOR 5)
|
||||||
set(VERSION_MINOR 53)
|
set(VERSION_MINOR 53)
|
||||||
set(VERSION_PATCH 6)
|
set(VERSION_PATCH 7)
|
||||||
|
|
||||||
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