GCompris-qt
23 import
QtQuick.Controls.Styles 1.0
41 property real fixedFontSize: -1
43 background: Rectangle {
44 border.width: control.activeFocus ? 4 : 2
48 GradientStop { position: 0 ; color: control.pressed ?
"#87ff5c" :
"#ffe85c" }
49 GradientStop { position: 1 ; color: control.pressed ?
"#44ff00" :
"#f8d600" }
55 implicitWidth: labelText.implicitWidth
56 implicitHeight: labelText.implicitHeight
62 anchors.verticalCenter: parent.verticalCenter
63 anchors.horizontalCenter: parent.horizontalCenter
64 wrapMode: Text.WordWrap
66 Component.onCompleted: {
67 if (fixedFontSize > 0) {
69 labelText.fontSize = fixedFontSize;
A QML component unifying text presentation in GCompris.
bool fixFontSize
Whether to not apply ApplicationSettings.baseFontSize.
This file is part of the KDE documentation.
Documentation copyright © 1996-2015 The KDE developers.
Generated on Tue Jun 2 2015 21:47:47 by
doxygen 1.8.9.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.