QML accessible versions of the Util functions.
Definition: QmlUtil.h:29
Q_INVOKABLE QString getPathToFont(const QString &fontPath)
Returns the platform dependent path to the font in fontPath.
Q_INVOKABLE QString getPathToMovie(const QString &moviePath)
Returns the platform dependent path to the movie in moviePath.
Q_INVOKABLE bool deviceHasTouchScreen()
Returns true if the device on which the game is running has a touch screen.
Q_INVOKABLE QString getPathToSound(const QString &soundPath)
Returns the platform dependent path to the sound in soundPath.
Q_INVOKABLE QString getPathToImage(const QString &imagePath)
Returns the platform dependent path to the image in imagePath.
static QmlUtil * getInstance()
Returns the QmlUtil singleton instance of this object.
Q_INVOKABLE QString getPathToAsset(const QString &assetPath)
Returns the platform dependent path for assetPath.
Q_INVOKABLE QUrl getUrlPathToAsset(const QString &assetPath)
Returns platform dependent path URL to assetPath.