应该完成了
This commit is contained in:
@ -39,7 +39,7 @@ void ConvertImageToTransparent(QImage &img)
|
||||
}
|
||||
}
|
||||
|
||||
NavBar::NavBar(ConfigResponse *configResponse, MainScreen *mainScreen,QWidget *parent) :
|
||||
NavBar::NavBar(MainScreen *mainScreen,QWidget *parent) :
|
||||
QWidget(parent), ui(new Ui::NavBar) {
|
||||
ui->setupUi(this);
|
||||
//this->setAttribute(Qt::WA_DeleteOnClose);
|
||||
@ -55,9 +55,10 @@ NavBar::NavBar(ConfigResponse *configResponse, MainScreen *mainScreen,QWidget *p
|
||||
config_request.sendRequest(&config_response);
|
||||
SQLiteHelper sqlite_helper;
|
||||
sqlite_helper.get_software(&buttonStructs, &config_response);
|
||||
|
||||
if(!config_response.succeed)
|
||||
{
|
||||
qColor.setNamedColor(DEFAULT_BACKGROUND_COLOR);
|
||||
qColor.setNamedColor(buttonStructs[0].background_color);
|
||||
|
||||
}else
|
||||
{
|
||||
|
Reference in New Issue
Block a user