Skip to content

Commit

Permalink
framework: Use Text directly
Browse files Browse the repository at this point in the history
Text is cheaper than Label.

Issue: #173
  • Loading branch information
plfiorini committed Feb 12, 2015
1 parent 778ae35 commit 4b4107b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion framework/controls/Heading.qml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import Hawaii.Themes 1.0
* Label. See QtQuick Controls Label and primitive QML Text element API for
* additional properties, methods and signals.
*/
QtControls.Label {
Text {
id: root

/**
Expand All @@ -68,6 +68,7 @@ QtControls.Label {
font.pointSize: headerPointSize(level)
font.weight: Font.Light
wrapMode: Text.WordWrap
renderType: Text.NativeRendering
opacity: 0.8

function headerPointSize(l) {
Expand Down

0 comments on commit 4b4107b

Please sign in to comment.