Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Static Public Member Functions | Static Private Member Functions | List of all members
TYTreeStateHelper Class Reference

#include <TYTreeStateHelper.h>

Static Public Member Functions

static void capture (QTreeWidget *tree, TYTreeViewState &outState)
 Capture l'état complet (expansions + scroll) du QTreeWidget. More...
 
static void apply (QTreeWidget *tree, const TYTreeViewState &state)
 Applique l'état complet (expansions + scroll) au QTreeWidget. More...
 

Static Private Member Functions

static void saveExpansionRec (QTreeWidgetItem *item, QHash< QString, bool > &map)
 
static void restoreExpansionRec (QTreeWidgetItem *item, const QHash< QString, bool > &map)
 
static QString makeKey (QTreeWidgetItem *item)
 

Detailed Description

Definition at line 40 of file TYTreeStateHelper.h.

Member Function Documentation

◆ apply()

void TYTreeStateHelper::apply ( QTreeWidget *  tree,
const TYTreeViewState state 
)
static

Applique l'état complet (expansions + scroll) au QTreeWidget.

Definition at line 50 of file TYTreeStateHelper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ capture()

void TYTreeStateHelper::capture ( QTreeWidget *  tree,
TYTreeViewState outState 
)
static

Capture l'état complet (expansions + scroll) du QTreeWidget.

Definition at line 25 of file TYTreeStateHelper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeKey()

QString TYTreeStateHelper::makeKey ( QTreeWidgetItem *  item)
staticprivate

Definition at line 107 of file TYTreeStateHelper.cpp.

Here is the caller graph for this function:

◆ restoreExpansionRec()

void TYTreeStateHelper::restoreExpansionRec ( QTreeWidgetItem *  item,
const QHash< QString, bool > &  map 
)
staticprivate

Definition at line 84 of file TYTreeStateHelper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveExpansionRec()

void TYTreeStateHelper::saveExpansionRec ( QTreeWidgetItem *  item,
QHash< QString, bool > &  map 
)
staticprivate

Definition at line 69 of file TYTreeStateHelper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

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