Theme

The Theme element provides functionality to change the current theme. More...

Properties

Signals

Methods

Detailed Description

Informs the application about the current theme file used through currentTheme property and notifies the items and application about successful theme change through themeChanged() signal. When error occurs during theme loading, it is reported through error property.

Property Documentation

currentTheme : string

This property holds the current theme file loaded.


error : string

The property contains the error, which occurred upon loading. The error is not cleared automatically and must be acknowledged after each operation.


Signal Documentation

Theme::themeChanged()

This documentation is under development and is subject to change.

Emitted when the theme file gets loaded with success.


Method Documentation

bool Theme::loadTheme(const QUrl & themeFile)

This documentation is under development and is subject to change.

Loads a theme file from any location, and updates the currentTheme property on success. Any error messages are reported in the error property.