From 7124ac6371ad192f27fa172a98f7096884f9f600 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Tue, 11 Apr 2017 13:01:14 +0200 Subject: 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 --- src/imports/controls/ToolButton.qml | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/imports/controls/ToolButton.qml') 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 } } -- cgit v1.2.3