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/universal/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/universal/ToolButton.qml')
-rw-r--r-- | src/imports/controls/universal/ToolButton.qml | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/imports/controls/universal/ToolButton.qml b/src/imports/controls/universal/ToolButton.qml index 613feb9f..5a2e98fd 100644 --- a/src/imports/controls/universal/ToolButton.qml +++ b/src/imports/controls/universal/ToolButton.qml @@ -74,8 +74,6 @@ T.ToolButton { text: control.text font: control.font elide: Text.ElideRight - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter opacity: enabled ? 1.0 : 0.2 color: control.Universal.foreground } |