Select the item in combo whose UserRole data matches id (no-op if not found).
| 17 | |
| 18 | // Select the item in combo whose UserRole data matches id (no-op if not found). |
| 19 | static void selectInCombo(QComboBox *combo, const QString &id) |
| 20 | { |
| 21 | for (int i = 0; i < combo->count(); ++i) { |
| 22 | if (combo->itemData(i).toString() == id) { |
| 23 | combo->setCurrentIndex(i); |
| 24 | return; |
| 25 | } |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | AppearanceTabWidget::AppearanceTabWidget( |
| 30 | AppearanceConfiguration *config, |
no test coverage detected