完成导航条,尚未Debug

This commit is contained in:
Mike Solar
2023-07-30 01:06:42 +08:00
parent b9559e444b
commit 9fac130a24
31 changed files with 332 additions and 142 deletions

View File

@ -11,10 +11,11 @@
#include <QtSvg/QSvgWidget>
#include <QtSvg/QSvgRenderer>
#include "globalvariables.h"
#include "buttonstruct.h"
class MyButton: public QPushButton{
public:
MyButton(QString logo,QString text,int width,int height,QList<MyButton *> *buttons,QWidget *parent=nullptr);
MyButton(ButtonStruct &buttonStruct,int width,int height,QList<MyButton *> *buttons,QWidget *parent=nullptr);
~MyButton() override;
QString getText(){
return text;
@ -47,10 +48,8 @@ protected:
private:
QList<MyButton *> *buttons;
QImage *logo;
QLabel *logo_label;
QLabel *text_label;
QImage *logo_cover;
QVBoxLayout *layout;
QPixmap* logo_pixmap;
QString text;
int width2;
int height2;