OpenStudio:openstudio_lib
 All Classes Namespaces Functions Variables Enumerations Enumerator
Signals | Public Member Functions | Protected Member Functions | List of all members
openstudio::OSCollapsibleItemHeader Class Reference

#include <OSCollapsibleItemHeader.hpp>

Signals

void clicked (OSCollapsibleItemHeader *header)
 

Public Member Functions

bool expanded () const
 
 OSCollapsibleItemHeader (const std::string &text, const OSItemId &itemId, OSItemType type=OSItemType::CollapsibleListHeader,*parent=nullptr)
 
bool selected () const
 
void setExpanded (bool isExpanded)
 
void setSelected (bool isSelected)
 
virtual ~OSCollapsibleItemHeader ()
 

Protected Member Functions

void leaveEvent (QEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void paintEvent (QPaintEvent *event) override
 
QSize sizeHint () const override
 

Constructor & Destructor Documentation

openstudio::OSCollapsibleItemHeader::OSCollapsibleItemHeader ( const std::string &  text,
const OSItemId itemId,
OSItemType  type = OSItemType::CollapsibleListHeader,
parent = nullptr 
)
virtual openstudio::OSCollapsibleItemHeader::~OSCollapsibleItemHeader ( )
inlinevirtual

Member Function Documentation

void openstudio::OSCollapsibleItemHeader::clicked ( OSCollapsibleItemHeader header)
signal
bool openstudio::OSCollapsibleItemHeader::expanded ( ) const
void openstudio::OSCollapsibleItemHeader::leaveEvent ( QEvent *  event)
overrideprotected
void openstudio::OSCollapsibleItemHeader::mousePressEvent ( QMouseEvent *  event)
overrideprotected
void openstudio::OSCollapsibleItemHeader::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected
void openstudio::OSCollapsibleItemHeader::paintEvent ( QPaintEvent *  event)
overrideprotected
bool openstudio::OSCollapsibleItemHeader::selected ( ) const
void openstudio::OSCollapsibleItemHeader::setExpanded ( bool  isExpanded)
void openstudio::OSCollapsibleItemHeader::setSelected ( bool  isSelected)
QSize openstudio::OSCollapsibleItemHeader::sizeHint ( ) const
overrideprotected