Public Functions
QLThemeView(QWidget* parent = nullptr) | |
virtual QList<QLThemeable*> | child_qlthemeables(Qt::FindChildOptions options = Qt::FindDirectChildrenOnly) override |
virtual void | update() override |
Protected Functions
virtual void | selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) override |
Signals
void | selected_theme_item_changed(LThemeItem* theme_item) |
Detailed Description
A QLThemeView is a QTreeView and a QLThemeable that provides an interface for navigating the LThemeItem hierarchy of an LTheme.
QLThemeView instances automatically link with the active theme during initialization and update when the active theme changes.
When the selected theme-item is changed, the selected_theme_item_changed() signal is emitted.
Member Function Documentation
QLThemeView(QWidget* parent = nullptr)
Constructs a theme view.
QList<QLThemeable*> child_qlthemeables(Qt::FindChildOptions options = Qt::FindDirectChildrenOnly)
Virtual
Override
Returns a list of child themeables.
This function overrides QLThemeable::child_qlthemeables() to include the theme-view's scroll bars.
void selected_theme_item_changed( LThemeItem* theme_item)
Signal
This signal is emitted when the selected theme-item changes.
The theme_item variable is a pointer to the newly selected theme-item.
void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected)
Protected
Virtual
Override
This function overrides QTreeView::selectionChanged() to emit selected_theme_item_changed() when the selection changes.
void update()
Virtual
Override
Updates the theme-view.
This function overrides QLThemeable::update() to update the theme-view's style sheet.