#include <OSListController.hpp>
Public Slots | |
virtual void | setSelected (bool isSelected) |
void | toggleSelected () |
Signals | |
void | selectedChanged (bool isSelected) |
Public Member Functions | |
OSListController * | controller () const |
bool | isSelected () const |
OSListItem (OSListController *listController=nullptr) | |
void | setController (OSListController *controller) |
virtual | ~OSListItem () |
Protected Attributes | |
QPointer< OSListController > | m_listController |
The purpose of OSListItem is to encapsulate data and if necessary notify when the data changes.
The data encapsulated by OSListItem will often come from a separate domain model rather than from directly within the OSListItem. OSListItem will commonly be subclassed and it is considered part of the controller hierarchy.
openstudio::OSListItem::OSListItem | ( | OSListController * | listController = nullptr | ) |
|
virtual |
|
inline |
bool openstudio::OSListItem::isSelected | ( | ) | const |
|
signal |
void openstudio::OSListItem::setController | ( | OSListController * | controller | ) |
|
virtualslot |
|
slot |
|
protected |