Header for tree widgets with additional collapse/expand button in the first column.
More...
#include <widgets/CollapsibleTreeHeader.h>
Header for tree widgets with additional collapse/expand button in the first column.
◆ CollapsibleTreeHeader()
◆ paintSection()
void paintSection |
( |
QPainter * |
painter, |
|
|
QRect const & |
rect, |
|
|
int |
logicalIndex |
|
) |
| const |
|
protected |
Paint section of header.
Calls regular paint section for all sections but section 0. Draws additional button (using primitives) on first section.
◆ mousePressEvent()
void mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
protected |
Mouse press event.
Set state of button to pressed if button is under mouse. Anyhow, the event is directed to the base class.
◆ mouseReleaseEvent()
void mouseReleaseEvent |
( |
QMouseEvent * |
event | ) |
|
|
protected |
Mouse release event.
Set state of button back to normal. Calls foldTree() if mouse is release over button. Anyhow, the event is directed to the base class.
◆ foldTree()
Call collapseAll or expandAll on associated tree widget.
The documentation for this class was generated from the following file: