Public Member Functions | Protected Slots | List of all members
pqTreeWidgetSelectionHelper Class Reference

pqTreeWidgetSelectionHelper enables multiple element selection and the toggling on then changing the checked state of the selected elements. More...

#include <pqTreeWidgetSelectionHelper.h>

Inherits QObject.

Public Member Functions

 pqTreeWidgetSelectionHelper (QTreeWidget *treeWidget)
 
 ~pqTreeWidgetSelectionHelper () override
 

Protected Slots

void onItemPressed (QTreeWidgetItem *item, int column)
 
void showContextMenu (const QPoint &)
 

Detailed Description

pqTreeWidgetSelectionHelper enables multiple element selection and the toggling on then changing the checked state of the selected elements.

Hence, the user can do things like selecting a subset of nodes and then (un)checking all of them etc. This cannot work in parallel with pqTreeWidgetCheckHelper, hence only once of the two must be used on the same tree widget. CAVEATS: This helper currently assumes that the 0-th column is checkable (if at all). This can be fixed if needed.

Definition at line 23 of file pqTreeWidgetSelectionHelper.h.

Constructor & Destructor Documentation

◆ pqTreeWidgetSelectionHelper()

pqTreeWidgetSelectionHelper::pqTreeWidgetSelectionHelper ( QTreeWidget *  treeWidget)

◆ ~pqTreeWidgetSelectionHelper()

pqTreeWidgetSelectionHelper::~pqTreeWidgetSelectionHelper ( )
override

Member Function Documentation

◆ onItemPressed

void pqTreeWidgetSelectionHelper::onItemPressed ( QTreeWidgetItem *  item,
int  column 
)
protectedslot

◆ showContextMenu

void pqTreeWidgetSelectionHelper::showContextMenu ( const QPoint &  )
protectedslot

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