CCIMXDesktop
 
Loading...
Searching...
No Matches
ConfigureUiPairs Struct Reference

The ConfigureUiPairs struct Manages the mapping between tree items and UI panels for configuration views. More...

#include <ConfigureUiPairs.h>

Inheritance diagram for ConfigureUiPairs:

Public Member Functions

 Q_DISABLE_COPY_MOVE (ConfigureUiPairs)
 Disable copy move.
 
 ConfigureUiPairs (QTreeWidget *treeWidget, QStackedWidget *stackedWidget)
 Constructs the ConfigureUiPairs manager.
 
QTreeWidgetItem * install_mappings (const QString &itemName, QTreeWidgetItem *parent, QWidget *installed_widgets)
 Installs a new tree item and associates it with a UI widget.
 

Detailed Description

The ConfigureUiPairs struct Manages the mapping between tree items and UI panels for configuration views.

Allows installing mapping relationships between navigation tree items and associated QWidget panels, and handles automatic switching.

Constructor & Destructor Documentation

◆ ConfigureUiPairs()

ConfigureUiPairs::ConfigureUiPairs ( QTreeWidget *  treeWidget,
QStackedWidget *  stackedWidget 
)

Constructs the ConfigureUiPairs manager.

Parameters
treeWidgetThe tree widget to act as navigation.
stackedWidgetThe stacked widget holding configuration panels.

Member Function Documentation

◆ install_mappings()

QTreeWidgetItem * ConfigureUiPairs::install_mappings ( const QString &  itemName,
QTreeWidgetItem *  parent,
QWidget *  installed_widgets 
)

Installs a new tree item and associates it with a UI widget.

Parameters
itemNameName of the tree item.
parentParent tree item (optional).
installed_widgetsThe associated widget.
Returns
The created QTreeWidgetItem.

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