QLThemeable Class
#include <QLayers/qlthemeable.h>
Public Functions
QLThemeable() | |
QLThemeable(const QLThemeable& other) | |
void | add_state_pool(QLStatePool* state_pool, bool include_children = true) |
QList<LAttribute*> | child_attributes(Qt::FindChildOptions options = Qt::FindDirectChildrenOnly) |
virtual QList<QLThemeable*> | child_qlthemeables(Qt::FindChildOptions options = Qt::FindDirectChildrenOnly) |
virtual std::vector<LThemeable*> | child_themeables(bool recursive = false) override |
virtual LString | path() override |
void | set_object_name(const LString& name) |
std::vector<LString> | state_combo() const |
QList<QLStatePool*> | state_pools() const |
virtual void | update() override |
Detailed Description
The QLThemeable class implements LThemeable for use with Qt widgets. This class is intended to be inherited alongside QWidget classes to provide them with functionality to apply Layers themes (see LTheme).
Since a QLThemeable object is both an LThemeable and a QWidget, it can be part of LObject and QObject hierarchies simultaneously.
Member Function Documentation
QLThemeable()
Constructs a QLayers themeable.
QLThemeable(const QLThemeable& other)
Constructs a copy of the other QLayers themeable.
void add_state_pool(QLStatePool* state_pool, bool include_children = true)
Adds state_pool to the themeable.
Also adds the state pool to child themeables if include_children is true, which is the default.
QList<LAttribute*> child_attributes(Qt::FindChildOptions options = Qt::FindDirectChildrenOnly)
Returns a list of child attributes.
QList<QLThemeable*> child_qlthemeables(Qt::FindChildOptions options = Qt::FindDirectChildrenOnly)
Virtual
Returns a list of child QLayers themeables.
std::vector<LThemeable*> child_themeables(bool recursive = false)
Virtual
Override
Returns a list of child themeables.
LString path()
Virtual
Override
Returns a string representing the themeable's path.
void set_object_name(const LString& name)
std::vector<LString> state_combo() const
Returns a list containing all of the active states from the themeable's associated state pools.
See also: QLStatePool
QList<QLStatePool*> state_pools() const
Returns a list containing pointers to the state pools associated with the themeable.
See also: QLStatePool
void update()
Virtual
Override
Updates the themeable widget.
This function overrides LThemeable::update().