OpenStudio:shared_gui_components
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Slots | Public Member Functions | Protected Member Functions | List of all members
openstudio::OSListView Class Reference

#include <OSListView.hpp>

Public Slots

void refreshAllViews ()
 

Public Member Functions

QSharedPointer< OSListControllerlistController () 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
 

Detailed Description

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.

Constructor & Destructor Documentation

openstudio::OSListView::OSListView ( bool  scrollable = false,
parent = nullptr 
)
virtual openstudio::OSListView::~OSListView ( )
inlinevirtual

Member Function Documentation

QSharedPointer<OSListController> openstudio::OSListView::listController ( ) const
void openstudio::OSListView::paintEvent ( QPaintEvent *  )
overrideprotected
void openstudio::OSListView::refreshAllViews ( )
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)