Skip to content

Commit

Permalink
update v.1.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
tonquer committed May 7, 2023
1 parent 71367ff commit 69bd22a
Show file tree
Hide file tree
Showing 40 changed files with 4,613 additions and 354 deletions.
Binary file added res/icon/nv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/icon/svip.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/icon/vip.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions res/images.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@
<file>icon/cat_random.jpg</file>
<file>icon/cat_leaderboard.jpg</file>
<file>icon/new.svg</file>
<file>icon/vip.png</file>
<file>icon/svip.png</file>
<file>icon/nv.png</file>
<file>icon/icon_picacg.png</file>
</qresource>
<qresource prefix="icon">
<file>theme/dark_pink/disabled/base.svg</file>
Expand Down
6 changes: 3 additions & 3 deletions src/component/list/base_list_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self, parent):
if Setting.IsGrabGesture.value:
QScroller.grabGesture(self, QScroller.LeftMouseButtonGesture)
propertiesOne = QScroller.scroller(self).scrollerProperties()
print(propertiesOne.scrollMetric(propertiesOne.MousePressEventDelay))
# print(propertiesOne.scrollMetric(propertiesOne.MousePressEventDelay))
propertiesOne.setScrollMetric(QScrollerProperties.MousePressEventDelay, 1)
propertiesOne.setScrollMetric(QScrollerProperties.VerticalOvershootPolicy, QScrollerProperties.OvershootAlwaysOff)
propertiesOne.setScrollMetric(QScrollerProperties.HorizontalOvershootPolicy, QScrollerProperties.OvershootAlwaysOff)
Expand Down Expand Up @@ -80,8 +80,8 @@ def wheelEvent(self, arg__1) -> None:
if self.vScrollBar:
self.vScrollBar.ScrollValue(-arg__1.angleDelta().y())
else:
print(self.verticalScrollMode())
print(self.verticalScrollBar().singleStep())
# print(self.verticalScrollMode())
# print(self.verticalScrollBar().singleStep())
return QListWidget.wheelEvent(self, arg__1)

def OnActionTriggered(self):
Expand Down
1 change: 1 addition & 0 deletions src/component/list/user_list_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ def AddNewChatItem(self, info, floor):
iwidget.starButton.hide()

# iwidget.commentLabel.setTextInteractionFlags(Qt.TextSelectableByKeyboard)
iwidget.commentLabel.setTextInteractionFlags(Qt.NoTextInteraction)
iwidget.setToolTip(slogan)
iwidget.id = id
iwidget.commentLabel.setText(description)
Expand Down
3 changes: 2 additions & 1 deletion src/component/scroll/smooth_scroll.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def wheelEvent(self, e):
def __smoothMove(self):
""" 计时器溢出时进行平滑滚动 """
totalDelta = 0
# 计算所有未处理完事件的滚动距离,定时器每溢出一次就将步数-1
# 计算所有未处理完事件的滚动距离,定时器每溢出 一次就将步数-1
for i in self.stepsLeftQueue:
totalDelta += self.__subDelta(i[0], i[1])
i[1] -= 1
Expand All @@ -72,6 +72,7 @@ def __smoothMove(self):
Qt.ScrollBegin,
False
)
# print("old {}".format(self.verticalScrollBar().value()))
QApplication.sendEvent(self.verticalScrollBar(), e)
else:
# 构造滚轮事件
Expand Down
6 changes: 3 additions & 3 deletions src/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
Issues2 = "https://hub.ggo.icu/tonquer/picacg-qt/issues"
Issues3 = "https://hub.fastgit.xyz/tonquer/picacg-qt/issues"

UpdateVersion = "v1.4.4"
RealVersion = "v1.4.4"
TimeVersion = "2023-3-19"
UpdateVersion = "v1.4.5"
RealVersion = "v1.4.5"
TimeVersion = "2023-5-7"

Waifu2xVersion = "1.1.6"

Expand Down
Loading

0 comments on commit 69bd22a

Please sign in to comment.