也许完成了?待调试
This commit is contained in:
@ -9,6 +9,8 @@
|
||||
#include "config.h"
|
||||
#include <QTimer>
|
||||
#include <QtSvg/QtSvg>
|
||||
#include "mainwindowlayout.h"
|
||||
#include "globalvariables.h"
|
||||
#ifdef _DEBUG
|
||||
#pragma comment(lib, "Qt5Svgd.lib")
|
||||
#else
|
||||
@ -28,6 +30,7 @@ NavBar::NavBar(ConfigResponse *configResponse,QWidget *parent) :
|
||||
for (auto buttonStruct : buttonStructs) {
|
||||
MyButton *myButton = new MyButton(buttonStruct, height(), height(), &buttons);
|
||||
myButton->setGeometry(x, 0, height(), height());
|
||||
connect(myButton, &MyButton::clicked1, mainWindowLayout, &MainWindowLayout::clickButton);
|
||||
x += height();
|
||||
buttons << myButton;
|
||||
}
|
||||
|
Reference in New Issue
Block a user