diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-04-11 13:01:14 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-04-11 11:20:05 +0000 |
commit | 7124ac6371ad192f27fa172a98f7096884f9f600 (patch) | |
tree | 000f3c7a20118840f37f25ec1ec8a21bce335e94 /src/imports/controls/ToolButton.qml | |
parent | 3408d28e3c058c620f4dfb167a1e25c3618fc90f (diff) |
Buttons: remove superfluous alignment for the internal labels
In QQuickIconLabel::layout(), the label is resized to:
min(availableSize, implicitSize)
In other words, the label is never larger than its content. Specifying
an alignment has therefore zero effect. This saves a few unnecessary
QML expression evaluations and gives a few frames' boost in qmlbench.
Change-Id: Ifa942d99a026fd2dca6e680bde2b538f9e526604
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/imports/controls/ToolButton.qml')
-rw-r--r-- | src/imports/controls/ToolButton.qml | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/imports/controls/ToolButton.qml b/src/imports/controls/ToolButton.qml index 13825fb0..e31f45a0 100644 --- a/src/imports/controls/ToolButton.qml +++ b/src/imports/controls/ToolButton.qml @@ -72,8 +72,6 @@ T.ToolButton { font: control.font color: control.enabled ? (control.visualFocus ? Default.focusColor : Default.textDarkColor) : Default.textDisabledLightColor elide: Text.ElideRight - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter } } |