提交 928e4ee2 编写于 作者: 之一Yo's avatar 之一Yo

更新状态提示条图标

上级 bf5025f8
screenshot/state_tooltip.gif

21.5 KB | W: | H:

screenshot/state_tooltip.gif

20.8 KB | W: | H:

screenshot/state_tooltip.gif
screenshot/state_tooltip.gif
screenshot/state_tooltip.gif
screenshot/state_tooltip.gif
  • 2-up
  • Swipe
  • Onion skin
......@@ -30,7 +30,7 @@ class StateTooltip(QWidget):
self.closeTimer = QTimer(self)
self.animation = QPropertyAnimation(self, b"windowOpacity")
self.busyImage = QPixmap("resource/images/running.png")
self.doneImage = QPixmap("resource/images/complete.png")
self.doneImage = QPixmap("resource/images/completed.png")
self.closeButton = QToolButton(self)
# 初始化参数
self.isDone = False
......@@ -114,7 +114,7 @@ class StateTooltip(QWidget):
painter.setRenderHints(QPainter.SmoothPixmapTransform)
painter.setPen(Qt.NoPen)
if not self.isDone:
painter.translate(25, 22) # 原点平移到旋转中心
painter.translate(24, 23) # 原点平移到旋转中心
painter.rotate(self.rotateAngle) # 坐标系旋转
painter.drawPixmap(
-int(self.busyImage.width() / 2),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册