#include <OSListView.hpp>
Public Slots | |
void | refreshAllViews () |
Public Member Functions | |
QSharedPointer< OSListController > | listController () const |
OSListView (bool scrollable=false,*parent=nullptr) | |
void | setContentsMargins (int left, int top, int right, int bottom) |
void | setDelegate (QSharedPointer< OSItemDelegate > delegate) |
void | setHorizontalScrollBarAlwaysOn (bool alwaysOn) |
void | setListController (QSharedPointer< OSListController > listController) |
void | setSpacing (int spacing) |
void | setVerticalScrollBarAlwaysOn (bool alwaysOn) |
virtual | ~OSListView () |
Protected Member Functions | |
void | paintEvent (QPaintEvent *) override |
The purpose of OSListView is to display a list of items in a vertical column.
This class's primary responsibility is to visually arrange a list of things. Data is provided to OSListView by a subclass of OSListController. For each item provided by the OSListController, OSListView draws a view provided by OSItemDelegate. It should be uncommon to subclass OSListView.
openstudio::OSListView::OSListView | ( | bool | scrollable = false , |
* | parent = nullptr |
||
) |
|
inlinevirtual |
QSharedPointer<OSListController> openstudio::OSListView::listController | ( | ) | const |
|
overrideprotected |
|
slot |
void openstudio::OSListView::setContentsMargins | ( | int | left, |
int | top, | ||
int | right, | ||
int | bottom | ||
) |
void openstudio::OSListView::setDelegate | ( | QSharedPointer< OSItemDelegate > | delegate | ) |
void openstudio::OSListView::setHorizontalScrollBarAlwaysOn | ( | bool | alwaysOn | ) |
void openstudio::OSListView::setListController | ( | QSharedPointer< OSListController > | listController | ) |
void openstudio::OSListView::setSpacing | ( | int | spacing | ) |
void openstudio::OSListView::setVerticalScrollBarAlwaysOn | ( | bool | alwaysOn | ) |