Rabbit Remote Control 0.1.0-bate6
Loading...
Searching...
No Matches
Signals | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
CCheckBoxHeader Class Reference

Check box header view. More...

#include <CheckBoxHeader.h>

Inheritance diagram for CCheckBoxHeader:
Inheritance graph
[legend]
Collaboration diagram for CCheckBoxHeader:
Collaboration graph
[legend]

Signals

void sigCheckStateChanged (int index, Qt::CheckState state)
 

Public Member Functions

 CCheckBoxHeader (Qt::Orientation orientation, QWidget *parent=nullptr)
 
void SetCheckable (int index, bool checkable, Qt::CheckState state=Qt::Unchecked)
 
bool isCheckable (int index) const
 
void SetCheckState (int index, Qt::CheckState state)
 
Qt::CheckState GetCheckState (int index) const
 

Protected Member Functions

void paintSection (QPainter *painter, const QRect &rect, int logicalIndex) const override
 
void mousePressEvent (QMouseEvent *event) override
 

Private Member Functions

QRect CheckboxRect (const QRect &sectionRect) const
 
void DrawText (QPainter *painter, const QRect &rect, const QString &text, Qt::Alignment alignment) const
 
void DrawCheckBox (QPainter *painter, const QRect &rect, Qt::CheckState state, bool enabled) const
 

Private Attributes

QHash< int, Qt::CheckState > m_CheckableSections
 

Detailed Description

Check box header view.

Definition at line 18 of file CheckBoxHeader.h.

Member Function Documentation

◆ CheckboxRect()

QRect CCheckBoxHeader::CheckboxRect ( const QRect &  sectionRect) const
private

Definition at line 103 of file CheckBoxHeader.cpp.

◆ DrawCheckBox()

void CCheckBoxHeader::DrawCheckBox ( QPainter *  painter,
const QRect &  rect,
Qt::CheckState  state,
bool  enabled 
) const
private

Definition at line 160 of file CheckBoxHeader.cpp.

◆ DrawText()

void CCheckBoxHeader::DrawText ( QPainter *  painter,
const QRect &  rect,
const QString &  text,
Qt::Alignment  alignment 
) const
private

Definition at line 187 of file CheckBoxHeader.cpp.

◆ GetCheckState()

Qt::CheckState CCheckBoxHeader::GetCheckState ( int  index) const

Definition at line 45 of file CheckBoxHeader.cpp.

◆ isCheckable()

bool CCheckBoxHeader::isCheckable ( int  index) const

Definition at line 88 of file CheckBoxHeader.cpp.

◆ mousePressEvent()

void CCheckBoxHeader::mousePressEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 207 of file CheckBoxHeader.cpp.

◆ paintSection()

void CCheckBoxHeader::paintSection ( QPainter *  painter,
const QRect &  rect,
int  logicalIndex 
) const
overrideprotected

Definition at line 115 of file CheckBoxHeader.cpp.

◆ SetCheckable()

void CCheckBoxHeader::SetCheckable ( int  index,
bool  checkable,
Qt::CheckState  state = Qt::Unchecked 
)

Definition at line 65 of file CheckBoxHeader.cpp.

◆ SetCheckState()

void CCheckBoxHeader::SetCheckState ( int  index,
Qt::CheckState  state 
)

Definition at line 20 of file CheckBoxHeader.cpp.

Member Data Documentation

◆ m_CheckableSections

QHash<int, Qt::CheckState> CCheckBoxHeader::m_CheckableSections
private

Definition at line 51 of file CheckBoxHeader.h.


The documentation for this class was generated from the following files: