The ConfigureUiPairs struct Manages the mapping between tree items and UI panels for configuration views. More...
#include <ConfigureUiPairs.h>
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. | |
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.
ConfigureUiPairs::ConfigureUiPairs | ( | QTreeWidget * | treeWidget, |
QStackedWidget * | stackedWidget | ||
) |
Constructs the ConfigureUiPairs manager.
treeWidget | The tree widget to act as navigation. |
stackedWidget | The stacked widget holding configuration panels. |
QTreeWidgetItem * ConfigureUiPairs::install_mappings | ( | const QString & | itemName, |
QTreeWidgetItem * | parent, | ||
QWidget * | installed_widgets | ||
) |
Installs a new tree item and associates it with a UI widget.
itemName | Name of the tree item. |
parent | Parent tree item (optional). |
installed_widgets | The associated widget. |