mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
38 lines
766 B
C++
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();
|
|
}
|