refactor: move loadHidpiIcon from ActionManager to ToolButton.

setting loadHidpiIcon in ToolButton is better than ActionManager.
ToolButton has less code and its aim also include loading icon.
This commit is contained in:
2026-07-03 15:15:21 +08:00
parent f4d272e014
commit 7ea3524a90
4 changed files with 18 additions and 17 deletions
+2
View File
@@ -15,6 +15,8 @@ public:
ToolButton(bool hoverColor = false, QWidget * parent = nullptr);
void setIconResourcePath(const QString &iconp);
static QIcon loadHidpiIcon(const QString &resp, QSize sz = QSize(32, 32));
public slots:
void setOpacity(qreal opacity, bool animated = true);