| 121 | } |
| 122 | |
| 123 | void IconPickerDialog::selectionChanged(QItemSelection selected, QItemSelection deselected) |
| 124 | { |
| 125 | if (selected.empty()) |
| 126 | return; |
| 127 | |
| 128 | QString key = selected.first().indexes().first().data(Qt::UserRole).toString(); |
| 129 | if (!key.isEmpty()) { |
| 130 | selectedIconKey = key; |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | int IconPickerDialog::execWithSelection(QString selection) |
| 135 | { |