GCompris-qt
ApplicationInfo.cpp
48 #if defined(Q_OS_ANDROID) || defined(Q_OS_IOS) || defined(Q_OS_BLACKBERRY) || defined(SAILFISHOS)
72 m_ratio = m_isMobile ? qMin(qMax(rect.width(), rect.height())/800. , qMin(rect.width(), rect.height())/520.) : 1;
81 m_fontRatio = m_isMobile ? qMax(qreal(1.0), qMin(height*refDpi/(dpi*refHeight), width*refDpi/(dpi*refWidth))) : 1;
86 connect(qApp->primaryScreen(), SIGNAL(physicalSizeChanged(QSizeF)), this, SLOT(notifyPortraitMode()));
123 return QString("%1/%2/rcc/%3").arg(QCoreApplication::applicationDirPath(), GCOMPRIS_DATA_FOLDER, file);
static QString getFilePath(const QString &file)
Returns an absolute and platform independent path to the passed file.
Definition: ApplicationInfo.cpp:116
Q_INVOKABLE QStringList getSystemExcludedFonts()
Definition: ApplicationInfo.cpp:150
Q_INVOKABLE QString getLocaleFilePath(const QString &file)
Returns an absolute path to a langauge specific resource file.
Definition: ApplicationInfo.cpp:141
Q_INVOKABLE QStringList getFontsFromRcc()
Definition: ApplicationInfo.cpp:155
Q_INVOKABLE QString getAudioFilePath(const QString &file)
Returns an absolute path to a language specific sound/voices file.
Definition: ApplicationInfo.cpp:127
QString localeShort
Short (2-letter) locale string of the currently active language.
Definition: ApplicationInfo.h:111
QString getResourceDataPath()
Returns the resource root-path used for GCompris resources.
Definition: ApplicationInfo.cpp:111
Q_INVOKABLE void screenshot(const QString &file)
Stores a screenshot in the passed file.
Definition: ApplicationInfo.cpp:180
Singleton that contains GCompris' persistent settings.
Definition: ApplicationSettings.h:63
A general purpose singleton that exposes miscellaneous native functions to the QML layer...
Definition: ApplicationInfo.h:43
Q_INVOKABLE QString getVoicesLocale(const QString &locale)
Returns a locale string that can be used in voices filenames.
Definition: ApplicationInfo.cpp:196
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
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.