#include "updatenotifywidget.h" #include "ui_updatenotifywidget.h" #include "mainwindow.h" #include UpdateNotifyWidget::UpdateNotifyWidget(QWidget *parent) : ui(new Ui::UpdateNotifyWidget) { ui->setupUi(this); setWindowFlag(Qt::SubWindow); setAttribute(Qt::WA_ShowModal,true); } void UpdateNotifyWidget::initialize(MainWindow *mainWindow) { this->mainWindow = mainWindow; currentLoadingCount = 0; } void UpdateNotifyWidget::addToList(FileData fileData) { QString itemName = fileData.path; itemName = itemName.remove(streamingAssetsPath); ui->updateListWidget->addItem(itemName); } UpdateNotifyWidget::~UpdateNotifyWidget() { delete ui; } void UpdateNotifyWidget::on_closeButton_clicked() { close(); }