Added version type to review message dialog

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2023-06-28 17:43:09 +03:00
parent 5f1074471d
commit 3ad559ab22
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318
3 changed files with 7 additions and 1 deletions

View File

@ -187,7 +187,8 @@ void ResourceDownloadDialog::confirm()
}); });
for (auto& task : selected) { for (auto& task : selected) {
confirm_dialog->appendResource({ task->getName(), task->getFilename(), task->getCustomPath(), confirm_dialog->appendResource({ task->getName(), task->getFilename(), task->getCustomPath(),
ProviderCaps.name(task->getProvider()), getRequiredBy(selected, task) }); ProviderCaps.name(task->getProvider()), getRequiredBy(selected, task),
task->getVersion().version_type.toString() });
} }
if (confirm_dialog->exec()) { if (confirm_dialog->exec()) {

View File

@ -77,6 +77,10 @@ void ReviewMessageBox::appendResource(ResourceInformation&& info)
itemTop->insertChildren(childIndx++, { requiredByItem }); itemTop->insertChildren(childIndx++, { requiredByItem });
} }
auto versionTypeItem = new QTreeWidgetItem(itemTop);
versionTypeItem->setText(0, tr("Version Type: %1").arg(info.version_type));
itemTop->insertChildren(childIndx++, { versionTypeItem });
ui->modTreeWidget->addTopLevelItem(itemTop); ui->modTreeWidget->addTopLevelItem(itemTop);
} }

View File

@ -18,6 +18,7 @@ class ReviewMessageBox : public QDialog {
QString custom_file_path{}; QString custom_file_path{};
QString provider; QString provider;
QStringList required_by; QStringList required_by;
QString version_type;
}; };
void appendResource(ResourceInformation&& info); void appendResource(ResourceInformation&& info);