第一阶段初稿+修复部分内容

This commit is contained in:
Mike Solar
2023-07-31 19:06:37 +08:00
parent e3c650dbfd
commit 57aea93735
38 changed files with 659 additions and 103 deletions

View File

@ -15,6 +15,7 @@
#include <QResizeEvent>
#include "buttonstruct.h"
#include <QtNetwork/QtNetwork>
#include "mainscreen.h"
#include "mainwindowlayout.h"
@ -24,9 +25,10 @@ QT_END_NAMESPACE
class NavBar : public QWidget {
Q_OBJECT
signals:
void firstUrl(QString url);
public:
NavBar(ConfigResponse *configResponse,QWidget *parent = nullptr);
NavBar(ConfigResponse *configResponse,MainScreen *mainScreen,QWidget *parent = nullptr);
~NavBar() override;
protected:
@ -38,6 +40,8 @@ protected:
private:
Ui::NavBar *ui;
QColor qColor;
QColor text_color;
QColor text_cover_color;
QList<MyButton *> buttons;
QList<ButtonStruct> buttonStructs;
QByteArray *buffer;
@ -50,6 +54,7 @@ private:
bool downloadSuccess=true;
void getLogoFromInternet(ConfigResponse *configResponse);
void getLogoFromLocal();
MainScreen *mainScreen;
private slots:
void storeToBuffer();
void cancelDownload();