#ifndef LEFTSIDERBARWIDGET_H #define LEFTSIDERBARWIDGET_H #include #include #include #include #include #include #include #include "functypeconverter.h" #include "component/mylabel.h" class LeftsiderbarWidget : public QWidget { Q_OBJECT public: // 启动模式,不同模式启动时展示的功能模块不同 enum StartMode { normal, livecd, std_user }; LeftsiderbarWidget(QWidget *parent = nullptr, StartMode mode = StartMode::normal); ~LeftsiderbarWidget(); void paintEvent(QPaintEvent *event); void setCheckedFunc(int func_type); signals: void selected(int func_type); private: QGSettings *m_personalQgsettings; qreal m_transparency = 0.8; QWidget *m_parent; QVBoxLayout *m_leftSideBarVLayout = nullptr; QLabel *m_mTitleIcon = nullptr; MyLabel *m_titleLabel = nullptr; QButtonGroup *m_funcGroup = nullptr; QStringList m_deplayFuncs; }; #endif // LEFTSIDERBARWIDGET_H