尝试修复macos标签显示不全
This commit is contained in:
tonquer 2022-05-03 19:22:14 +08:00
parent 56e4448691
commit 3b724c70c9
7 changed files with 12 additions and 6 deletions

View File

@ -11,6 +11,8 @@
# 5) 设置中新增了下载保存格式,可以用作者名前缀保存
# 6) 漫画详情中tag和作者可用右键复制
# 7) 修复本地数据库更新失败的问题
# 8) 修复搜索漫画不显示数量和完结标注
# 9) 修复MacOS漫画详情页面tag和分类显示不全
# Version: v1.3.6
# 2022/3/19

View File

@ -1,5 +1,5 @@
from PySide6.QtCore import Qt, QSize
from PySide6.QtGui import QFont
from PySide6.QtGui import QFont, QFontMetrics
from PySide6.QtWidgets import QListWidgetItem, QLabel, QAbstractItemView
from component.list.base_list_widget import BaseListWidget
@ -44,7 +44,11 @@ class TagListWidget(BaseListWidget):
item.setTextAlignment(Qt.AlignCenter)
# item.setBackground(QColor(87, 195, 194))
# item.setBackground(QColor(0, 0, 0, 0))
item.setSizeHint(label.sizeHint()+ QSize(20, 10))
fm = QFontMetrics(font)
width = fm.boundingRect(name).width()
height = QFontMetrics(font).height()
item.setSizeHint(QSize(width, height) + QSize(20, 10))
if not isSelectable:
item.setFlags(item.flags() & (~Qt.ItemIsSelectable))

View File

@ -38,7 +38,7 @@ DatabaseUpdate2 = "https://gitee.com/bika-robot/picacg-database/raw/main/version
DatabaseDownload2 = "https://gitee.com/bika-robot/picacg-database/raw/main/data3/"
UpdateVersion = "v1.3.6"
RealVersion = "v1.3.6"
TimeVersion = "2022-3-20"
TimeVersion = "2022-5-3"
Waifu2xVersion = "1.1.1"

BIN
src/data/book.db Normal file

Binary file not shown.

View File

@ -1,4 +1,4 @@
PySide6==6.2.2.1
PySide6==6.2.4
websocket-client==0.59.0
requests==2.26.0
urllib3==1.25.11

View File

@ -177,7 +177,7 @@ class HelpView(QWidget, Ui_Help, QtTaskBase):
if not data:
return
Log.Info("db: check update, {}->{}->{}".format(self.curUpdateTick, updateTick, newTick))
if len(data) <= 130:
if len(data) <= 200:
Log.Info("Update code: {}".format(data))
return
elif data:

View File

@ -55,7 +55,7 @@ class ReadFrame(QFrame):
label = self.helpLabel
font = QFont()
font.setPointSize(64)
fm = QFontMetrics(font)
# fm = QFontMetrics(font)
label.resize(self.width(), self.height())
p = QPixmap(self.width(), self.height())
p.fill(Qt.transparent)