mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
feat: change UI for send to server
This commit is contained in:
@@ -16,7 +16,7 @@ void UpdateNotifyWidget::initialize(MainWindow *mainWindow,UpdateController *upd
|
||||
{
|
||||
setWindowTitle(tr("Отправка новых файлов"));
|
||||
|
||||
ui->LoadingBar->hide();
|
||||
//ui->LoadingBar->hide();
|
||||
this->mainWindow = mainWindow;
|
||||
this->updateController = updateController;
|
||||
currentLoadingCount = 0;
|
||||
@@ -31,13 +31,13 @@ void UpdateNotifyWidget::setUpdateList(QList<FileData> *fileDataList)
|
||||
int listCount = fileDataList->count();
|
||||
this->updateList = fileDataList;
|
||||
|
||||
ui->LoadingBar->setRange(0,listCount);
|
||||
//ui->LoadingBar->setRange(0,listCount);
|
||||
}
|
||||
|
||||
void UpdateNotifyWidget::updateCount()
|
||||
{
|
||||
currentLoadingCount++;
|
||||
ui->LoadingBar->setValue(currentLoadingCount);
|
||||
//ui->LoadingBar->setValue(currentLoadingCount);
|
||||
}
|
||||
|
||||
void UpdateNotifyWidget::addToList(FileData fileData)
|
||||
@@ -51,15 +51,15 @@ void UpdateNotifyWidget::addToList(FileData fileData)
|
||||
void UpdateNotifyWidget::on_StartLoadButton_clicked()
|
||||
{
|
||||
emit sigUpdateFilesOnServer(updateList);
|
||||
ui->StartLoadButton->setEnabled(false);
|
||||
ui->CancelButton->setEnabled(false);
|
||||
ui->LoadingBar->show();
|
||||
//ui->StartLoadButton->setEnabled(false);
|
||||
//ui->CancelButton->setEnabled(false);
|
||||
//ui->LoadingBar->show();
|
||||
}
|
||||
|
||||
void UpdateNotifyWidget::on_CancelButton_clicked()
|
||||
{
|
||||
mainWindow->checkUpdate();
|
||||
close();
|
||||
|
||||
}
|
||||
|
||||
void UpdateNotifyWidget::fillList()
|
||||
@@ -95,3 +95,8 @@ void UpdateNotifyWidget::showCompleteDialogBox(bool flag)
|
||||
connect(messageBox,&QMessageBox::accepted,this,&UpdateNotifyWidget::on_CancelButton_clicked);
|
||||
messageBox->show();
|
||||
}
|
||||
|
||||
void UpdateNotifyWidget::on_closeButton_clicked()
|
||||
{
|
||||
close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user