Skip to content

Commit 11667ee

Browse files
committed
Expands options in get_standard_iconsize
1 parent 55963a2 commit 11667ee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

qtapputils/icons.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ def get_standard_iconsize(constant: 'str') -> int:
5050
return style.pixelMetric(QStyle.PM_MessageBoxIconSize)
5151
elif constant == 'small':
5252
return style.pixelMetric(QStyle.PM_SmallIconSize)
53+
elif constant == 'large':
54+
return style.pixelMetric(QStyle.PM_LargeIconSize)
55+
elif constant == 'toolbar':
56+
return style.pixelMetric(QStyle.PM_ToolBarIconSize)
57+
elif constant == 'button':
58+
return style.pixelMetric(QStyle.PM_ButtonIconSize)
5359

5460

5561
class IconManager:

0 commit comments

Comments
 (0)