Public Functions
QLTableView(QWidget* parent = nullptr) | |
virtual QList<QLThemeable*> | child_qlthemeables(Qt::FindChildOptions options = Qt::FindDirectChildrenOnly) override |
void | setItemDelegate(QAbstractItemDelegate* item_delegate) |
virtual void | update() override |
void | update_height() |
Detailed Description
A QLTableView is a QTableView and a QLThemeable that displays items from a model in the form of a table.
Member Function Documentation
QLTableView(QWidget* parent = nullptr)
Constructs a table 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 table's item delegate as well as its children.
void setItemDelegate(QAbstractItemDelegate* item_delegate)
Sets the item delegate of the table view.
void update()
Virtual
Override
Updates the table view.
This function overrides QLThemeable::update() to set the table view's style sheet.
void update_height()
Updates the height of the table view.