Plasma
Plasma::TreeView Class Reference
#include <Plasma/Widgets/TreeView>
Inheritance diagram for Plasma::TreeView:

Public Member Functions | |
TreeView (QGraphicsWidget *parent=0) | |
~TreeView () | |
QAbstractItemModel * | model () |
QTreeView * | nativeWidget () const |
void | setModel (QAbstractItemModel *model) |
void | setStyleSheet (const QString &stylesheet) |
QString | styleSheet () |
Properties | |
QAbstractItemModel * | model |
QTreeView * | nativeWidget |
QGraphicsWidget * | parentWidget |
QString | styleSheet |
Detailed Description
Provides a plasma-themed QTreeView.
Definition at line 40 of file treeview.h.
Constructor & Destructor Documentation
◆ TreeView()
|
explicit |
Definition at line 39 of file treeview.cpp.
◆ ~TreeView()
Plasma::TreeView::~TreeView | ( | ) |
Definition at line 54 of file treeview.cpp.
Member Function Documentation
◆ model()
QAbstractItemModel * Plasma::TreeView::model | ( | ) |
- Returns
- the model shown by this view
◆ nativeWidget()
QTreeView * Plasma::TreeView::nativeWidget | ( | ) | const |
- Returns
- the native widget wrapped by this TreeView
Definition at line 80 of file treeview.cpp.
◆ setModel()
void Plasma::TreeView::setModel | ( | QAbstractItemModel * | model | ) |
Sets a model for this weather view.
- Parameters
-
model the model to display
Definition at line 60 of file treeview.cpp.
◆ setStyleSheet()
void Plasma::TreeView::setStyleSheet | ( | const QString & | stylesheet | ) |
Sets the stylesheet used to control the visual display of this TreeView.
- Parameters
-
stylesheet a CSS string
Definition at line 70 of file treeview.cpp.
◆ styleSheet()
QString Plasma::TreeView::styleSheet | ( | ) |
- Returns
- the stylesheet currently used with this widget
Property Documentation
◆ model
|
readwrite |
Definition at line 1 of file treeview.h.
◆ nativeWidget
|
read |
Definition at line 1 of file treeview.h.
◆ parentWidget
|
read |
Definition at line 1 of file treeview.h.
◆ styleSheet
|
readwrite |
Definition at line 1 of file treeview.h.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.