• Skip to content
  • Skip to link menu
KDE API Documentation - GCText.qml Source File (GCompris-qt)
  • KDE Home
  • Contact Us
 

GCompris-qt

  • src
  • core
GCText.qml
1 /* GCompris - GCText.qml
2  *
3  * Copyright (C) 2014 Johnny Jazeix <jazeix@gmail.com>
4  *
5  * Authors:
6  * Johnny Jazeix <jazeix@gmail.com>
7  * Holger Kaelberer <holger.k@elberer.de>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 3 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, see <http://www.gnu.org/licenses/>.
21  */
22 import QtQuick 2.0
23 import GCompris 1.0
24 import "."
25 
49 Text {
55  readonly property int tinySize: 10.0
56 
62  readonly property int smallSize: 12.0
63 
69  readonly property int regularSize: 14.0
70 
76  readonly property int mediumSize: 16.0
77 
83  readonly property int largeSize: 24.0
84 
90  readonly property int hugeSize: 32.0
91 
99  property bool fixFontSize: false
100 
119  property int fontSize: 14
120 
121  font.pointSize: ((fixFontSize ? 0 : ApplicationSettings.baseFontSize)
122  + fontSize) * ApplicationInfo.fontRatio
123  font.family: GCSingletonFontLoader.fontLoader.name
124  font.capitalization: ApplicationSettings.fontCapitalization
125 }
GCSingletonFontLoader
A QML singleton helper to load currently active font based on current font settings.
Definition: GCSingletonFontLoader.qml:35
QtQuick
GCompris
ApplicationSettings::fontCapitalization
quint32 fontCapitalization
Font Capitalization.
Definition: ApplicationSettings.h:120
ApplicationSettings::baseFontSize
int baseFontSize
Current base font-size used for font scaling.
Definition: ApplicationSettings.h:166
ApplicationSettings
Singleton that contains GCompris' persistent settings.
Definition: ApplicationSettings.h:63
ApplicationInfo
A general purpose singleton that exposes miscellaneous native functions to the QML layer...
Definition: ApplicationInfo.h:43
ApplicationInfo::fontRatio
qreal fontRatio
Ratio factor used for font scaling.
Definition: ApplicationInfo.h:106
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.

GCompris-qt

Skip menu "GCompris-qt"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • File List
  • Modules

Class Picker

Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal