Public Member Functions | Protected Slots | List of all members
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>

Inherits QObject.

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 23 of file pqListWidgetCheckHelper.h.

Constructor & Destructor Documentation

◆ pqListWidgetCheckHelper()

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

Member Function Documentation

◆ onItemClicked

void pqListWidgetCheckHelper::onItemClicked ( QListWidgetItem *  item)
protectedslot

◆ onItemPressed

void pqListWidgetCheckHelper::onItemPressed ( QListWidgetItem *  item)
protectedslot

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