|
ParaView
|
If a QListWidget has checkable elements in any column, on needs to explicitly click on the checkbox to change the check state. More...
#include <pqListWidgetCheckHelper.h>
Public Member Functions | |
| pqListWidgetCheckHelper (QListWidget *ListWidget, QObject *parent) | |
Protected Slots | |
| void | onItemClicked (QListWidgetItem *item) |
| void | onItemPressed (QListWidgetItem *item) |
If a QListWidget has checkable elements in any column, on 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 pqListWidgetCheckHelper. Simply create and instance of pqListWidgetCheckHelper, and set a List to use.
Definition at line 49 of file pqListWidgetCheckHelper.h.
| pqListWidgetCheckHelper::pqListWidgetCheckHelper | ( | QListWidget * | ListWidget, |
| QObject * | parent | ||
| ) |
| void pqListWidgetCheckHelper::onItemClicked | ( | QListWidgetItem * | item | ) | [protected, slot] |
| void pqListWidgetCheckHelper::onItemPressed | ( | QListWidgetItem * | item | ) | [protected, slot] |
1.7.5.1