| 124 | } |
| 125 | |
| 126 | void IconPickerDialog::selectionChanged(QItemSelection selected, QItemSelection deselected) |
| 127 | { |
| 128 | if (selected.empty()) |
| 129 | return; |
| 130 | |
| 131 | QString key = selected.first().indexes().first().data(Qt::UserRole).toString(); |
| 132 | if (!key.isEmpty()) { |
| 133 | selectedIconKey = key; |
| 134 | } |
| 135 | buttonRemove->setEnabled(APPLICATION->icons()->iconFileExists(selectedIconKey)); |
| 136 | } |
| 137 | |
| 138 | int IconPickerDialog::execWithSelection(QString selection) |
| 139 | { |
nothing calls this directly
no test coverage detected