CCIMXDesktop
 
Loading...
Searching...
No Matches
ToolsStackedWidget.h
1#ifndef TOOLSSTACKEDWIDGET_H
2#define TOOLSSTACKEDWIDGET_H
3#include <QWidget>
4
5namespace Ui {
7}
8
12class ToolsStackedWidget : public QWidget {
13 Q_OBJECT
14
15public:
20 explicit ToolsStackedWidget(QWidget* parent = nullptr);
25 struct PagePackage {
26 QString name;
27 QIcon icon;
28 QWidget* widget;
29 };
35 void add_switchable_page(const PagePackage& package);
36
37private:
38 Ui::ToolsStackedWidget* ui;
39};
40
41#endif // TOOLSSTACKEDWIDGET_H
The ToolsStackedWidget class.
Definition ToolsStackedWidget.h:12
void add_switchable_page(const PagePackage &package)
add_switchable_page
Definition ToolsStackedWidget.cpp:15
manage the init of the page initer
Definition ToolsStackedWidget.h:25
QWidget * widget
widget if button is pressed to switch show
Definition ToolsStackedWidget.h:28
QIcon icon
toolbutton icon, can pass default icon
Definition ToolsStackedWidget.h:27
QString name
toolbutton name
Definition ToolsStackedWidget.h:26