完成导航条,尚未Debug
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user