If a QTreeWidget has checkable elements in any column, one needs to explicitly click on the checkbox to change the check state.
More...
#include <pqTreeWidgetCheckHelper.h>
Inherits QObject.
If a QTreeWidget has checkable elements in any column, one needs to explicitly click on the checkbox to change the check state.
However, sometimes we simply want the checkbox to be updated when the user clicks on the entire row. For that purpose, we use pqTreeWidgetCheckHelper. Simply create and instance of pqTreeWidgetCheckHelper, and set a tree to use.
Definition at line 50 of file pqTreeWidgetCheckHelper.h.
◆ CheckMode
◆ pqTreeWidgetCheckHelper()
pqTreeWidgetCheckHelper::pqTreeWidgetCheckHelper |
( |
QTreeWidget * |
treeWidget, |
|
|
int |
checkableColumn, |
|
|
QObject * |
parent |
|
) |
| |
◆ setCheckMode()
void pqTreeWidgetCheckHelper::setCheckMode |
( |
CheckMode |
mode | ) |
|
|
inline |
◆ checkMode()
CheckMode pqTreeWidgetCheckHelper::checkMode |
( |
| ) |
const |
|
inline |
◆ onItemClicked
void pqTreeWidgetCheckHelper::onItemClicked |
( |
QTreeWidgetItem * |
item, |
|
|
int |
column |
|
) |
| |
|
protectedslot |
◆ onItemPressed
void pqTreeWidgetCheckHelper::onItemPressed |
( |
QTreeWidgetItem * |
item, |
|
|
int |
column |
|
) |
| |
|
protectedslot |
The documentation for this class was generated from the following file: