aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols/macos/Button.qml
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <[email protected]>2022-12-20 11:54:29 +0100
committerRichard Moe Gustavsen <[email protected]>2022-12-22 19:41:12 +0100
commitd6352cd4aa6151be6ef4186cad34ca42bb49ed9f (patch)
tree0f41d34a50c2c43c69a334e713506cefb3200162 /src/quickcontrols/macos/Button.qml
parentdc8f44b14501ecd4acc196f5138aeff3f7502d0a (diff)
Native style: remove setting font from QStyle
This is a follow-up on 43eca45b06. Which font a control should use should follow normal font propagation. So setting a different font explicitly in every control is not ideal. The font is in practice the same for all controls anyway. This will also remove a warning that will be printed if the application assigns a custom background delegate to a Button. Fixes: QTBUG-98098 Change-Id: I4f9304b391b4b9e398882fc532cbff5b09f53aff Reviewed-by: Mitch Curtis <[email protected]>
Diffstat (limited to 'src/quickcontrols/macos/Button.qml')
-rw-r--r--src/quickcontrols/macos/Button.qml2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/quickcontrols/macos/Button.qml b/src/quickcontrols/macos/Button.qml
index 5fa56c2b13..bc13ab4626 100644
--- a/src/quickcontrols/macos/Button.qml
+++ b/src/quickcontrols/macos/Button.qml
@@ -7,6 +7,4 @@ import QtQuick.NativeStyle as NativeStyle
NativeStyle.DefaultButton {
id: control
readonly property Item __focusFrameTarget: control
-
- font.pixelSize: background.styleFont(control).pixelSize
}