Refactor specification handling in DocumentSettingsDialog and PDFController. Introduced primary application field for document types, updated export messages for consistency, and improved page number handling in specifications. Cleaned up unnecessary code in preview widgets.

This commit is contained in:
2025-12-23 14:12:50 +03:00
parent 129922e392
commit 80e407e6be
12 changed files with 349 additions and 105 deletions
+2 -2
View File
@@ -2585,7 +2585,7 @@ QString DataBaseController::getSpecificationTableInfo(const QString &projectName
query.addBindValue(projectName);
if (!query.exec() || !query.next()) {
setLastError("Ошибка получения информации о спецификации материалов: " + query.lastError().text());
setLastError("Ошибка получения информации о спецификации: " + query.lastError().text());
return QString();
}
@@ -2595,7 +2595,7 @@ QString DataBaseController::getSpecificationTableInfo(const QString &projectName
int minOrder = query.value(3).toInt();
int maxOrder = query.value(4).toInt();
QString info = QString("Спецификация материалов для проекта '%1':\n"
QString info = QString("Спецификация для проекта '%1':\n"
"Всего строк: %2\n"
"Заголовков: %3\n"
"Пустых строк: %4\n"