Browse Source

Don't create a new instance (and a new binding) of QGCPalette for every instance of QGCLabel.

QGC4.4
Gus Grubba 5 years ago
parent
commit
d8fdf6732c
  1. 3
      src/QmlControls/QGCLabel.qml

3
src/QmlControls/QGCLabel.qml

@ -6,9 +6,8 @@ import QGroundControl.Palette 1.0 @@ -6,9 +6,8 @@ import QGroundControl.Palette 1.0
import QGroundControl.ScreenTools 1.0
Text {
QGCPalette { id: __qgcPal; colorGroupEnabled: enabled }
font.pointSize: ScreenTools.defaultFontPointSize
font.family: ScreenTools.normalFontFamily
color: __qgcPal.text
color: qgcPal.text
antialiasing: true
}

Loading…
Cancel
Save