Files
RRJClient/updatenotifywidget.cpp
2024-10-02 11:19:38 +03:00

38 lines
766 B
C++

#include "updatenotifywidget.h"
#include "ui_updatenotifywidget.h"
#include "mainwindow.h"
#include <QMessageBox>
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();
}