35 lines
843 B
C++
35 lines
843 B
C++
#ifndef LEFTSIDERBARWIDGET_H
|
|
#define LEFTSIDERBARWIDGET_H
|
|
|
|
#include <QWidget>
|
|
#include <QObject>
|
|
#include <QHBoxLayout>
|
|
#include <QLabel>
|
|
#include <QPushButton>
|
|
#include <QButtonGroup>
|
|
#include "functypeconverter.h"
|
|
#include "component/mylabel.h"
|
|
|
|
class LeftsiderbarWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
// 启动模式,不同模式启动时展示的功能模块不同
|
|
enum StartMode {
|
|
normal,
|
|
livecd
|
|
};
|
|
LeftsiderbarWidget(QWidget *parent = nullptr, StartMode mode = StartMode::normal);
|
|
~LeftsiderbarWidget();
|
|
void paintEvent(QPaintEvent *event);
|
|
private:
|
|
int transparency = 0;
|
|
|
|
QVBoxLayout *m_leftSideBarVLayout = nullptr;
|
|
QLabel *m_mTitleIcon = nullptr;
|
|
MyLabel *m_titleLabel = nullptr;
|
|
QButtonGroup *m_funcGroup = nullptr;
|
|
};
|
|
|
|
#endif // LEFTSIDERBARWIDGET_H
|