mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Передача больших файлов xml с задачами кусками
This commit is contained in:
@@ -33,13 +33,13 @@ FIMtasksWidget::FIMtasksWidget(ConnectorToServer* connectorToServer, TypeList ty
|
||||
|
||||
preparationTreeWidget();
|
||||
|
||||
threadAnimation = new QThread();
|
||||
//threadAnimation = new QThread();
|
||||
waitAnimationWidget = new WaitAnimationWidget;
|
||||
QMovie *movie = new QMovie(":/resources/icons/762.gif");
|
||||
waitAnimationWidget->setParent(this);
|
||||
waitAnimationWidget->initialize(movie,this);
|
||||
waitAnimationWidget->moveToThread(threadAnimation);
|
||||
threadAnimation->start();
|
||||
//waitAnimationWidget->moveToThread(threadAnimation);
|
||||
//threadAnimation->start();
|
||||
|
||||
ui->btnDelete->setObjectName("btnDelete");
|
||||
ui->btnDelete->setEnabled(false);
|
||||
@@ -80,10 +80,10 @@ FIMtasksWidget::~FIMtasksWidget()
|
||||
|
||||
waitAnimationWidget->hideWithStop();
|
||||
|
||||
threadAnimation->quit();
|
||||
threadAnimation->wait();
|
||||
//threadAnimation->quit();
|
||||
//threadAnimation->wait();
|
||||
|
||||
delete threadAnimation;
|
||||
//delete threadAnimation;
|
||||
|
||||
delete waitAnimationWidget;
|
||||
delete treeWidget;
|
||||
@@ -565,5 +565,6 @@ void FIMtasksWidget::on_btnCheck_clicked()
|
||||
|
||||
void FIMtasksWidget::on_btnAssignTask_clicked()
|
||||
{
|
||||
assignTaskFIMtoTrainee();
|
||||
if(QMessageBox::question(this, tr("New task"), tr("Assign this task?"), QMessageBox::Ok, QMessageBox::Cancel) == QMessageBox::Ok)
|
||||
assignTaskFIMtoTrainee();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user