第一阶段初稿+修复部分内容
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user