128
131
void ImageSelectionOverlay::slotSelectionChanged(const QItemSelection& selected, const QItemSelection& deselected)
130
133
QModelIndex index = button()->index();
133
137
if (selected.contains(index))
134
139
button()->setChecked(true);
135
141
else if (deselected.contains(index))
136
143
button()->setChecked(false);