207 { |
207 { |
208 MagicType wandtype = MagicWandMode::Set; |
208 MagicType wandtype = MagicWandMode::Set; |
209 |
209 |
210 if (data.keymods & Qt::ShiftModifier) |
210 if (data.keymods & Qt::ShiftModifier) |
211 wandtype = MagicWandMode::Additive; |
211 wandtype = MagicWandMode::Additive; |
212 elif (data.keymods & Qt::ControlModifier) |
212 else if (data.keymods & Qt::ControlModifier) |
213 wandtype = MagicWandMode::Subtractive; |
213 wandtype = MagicWandMode::Subtractive; |
214 |
214 |
215 doMagic (renderer()->pickOneObject (data.ev->x(), data.ev->y()), wandtype); |
215 doMagic (renderer()->pickOneObject (data.ev->x(), data.ev->y()), wandtype); |
216 return true; |
216 return true; |
217 } |
217 } |