| 287 | } |
| 288 | |
| 289 | QString describeImportedMemory(const MemoryEntry& memory) |
| 290 | { |
| 291 | const QString label = memory.name.trimmed(); |
| 292 | if (!label.isEmpty()) |
| 293 | return QString("%1 (%2 MHz)").arg(label, QString::number(memory.freq, 'f', 6)); |
| 294 | if (memory.freq > 0.0) |
| 295 | return QString("%1 MHz").arg(QString::number(memory.freq, 'f', 6)); |
| 296 | return "Unnamed memory"; |
| 297 | } |
| 298 | |
| 299 | QString formatImportIssue(const QString& rowLabel, |
| 300 | const QString& message, |