#include "ControlPanelWidget.h" #include "MainWindow.h" #include "FITK_Component/FITKWidget/FITKDrawerWidget.h" #include #include #include namespace GUI { ControlPanelWidget::ControlPanelWidget(MainWindow *mainWindow) : PanelWidgetBase(mainWindow) { this->setTitle(tr("Control Panel")); auto drawerWidget = new Comp::FITKDrawerWidget(this); drawerWidget->setLockerWidgetIcon(QPixmap(":/icons/fold.png"), QPixmap(":/icons/gfold.png")); drawerWidget->setAllItemFold(true); ///所有抽屉可同时关闭 drawerWidget->addWidget(new QWidget(nullptr), "test 1"); drawerWidget->addWidget(new QWidget, "test 2"); drawerWidget->addWidget(new QWidget, "test 3"); drawerWidget->addWidget(new QWidget, "test 4"); drawerWidget->addWidget(new QWidget, "test 5"); this->setWidget(drawerWidget); } ControlPanelWidget::~ControlPanelWidget() { } }