| 78 | }; |
| 79 | |
| 80 | QString cameraModelToString(int combo_index) { |
| 81 | const auto model = static_cast<SceneViewWidget::CameraModel>(combo_index); |
| 82 | for (const auto& entry : kCameraModelNames) { |
| 83 | if (entry.model == model) { |
| 84 | return QString::fromLatin1(entry.id); |
| 85 | } |
| 86 | } |
| 87 | return QStringLiteral("orbit"); |
| 88 | } |
| 89 | |
| 90 | // Combo index for a persisted model name, or -1 when missing / unknown (→ keep |
| 91 | // the default). |