ParaView
Public Member Functions | Protected Slots
pqListWidgetCheckHelper Class Reference

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>

List of all members.

Public Member Functions

 pqListWidgetCheckHelper (QListWidget *ListWidget, QObject *parent)

Protected Slots

void onItemClicked (QListWidgetItem *item)
void onItemPressed (QListWidgetItem *item)

Detailed Description

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.


Constructor & Destructor Documentation

pqListWidgetCheckHelper::pqListWidgetCheckHelper ( QListWidget *  ListWidget,
QObject *  parent 
)

Member Function Documentation

void pqListWidgetCheckHelper::onItemClicked ( QListWidgetItem *  item) [protected, slot]
void pqListWidgetCheckHelper::onItemPressed ( QListWidgetItem *  item) [protected, slot]

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