mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-13 16:34:14 +02:00
FIX compile-warnings
This commit is contained in:
@@ -436,7 +436,10 @@ void ProjectPrintWindow::printDiagram(Diagram *diagram, bool fit_page, QPainter
|
||||
|
||||
// Build info text
|
||||
QStringList lines;
|
||||
for (const QString &key : {"label", "manufacturer", "designation", "description"}) {
|
||||
for (const auto &key : {QStringLiteral("label"),
|
||||
QStringLiteral("manufacturer"),
|
||||
QStringLiteral("designation"),
|
||||
QStringLiteral("description")}) {
|
||||
if (info.contains(key) && !info.value(key).toString().isEmpty())
|
||||
lines << QETInformation::translatedInfoKey(key) + ": " + info.value(key).toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user