src/editmodes/magicWandMode.cpp

changeset 967
eb586d3e1a6a
parent 966
a834e43a57da
child 968
4b93b7963456
equal deleted inserted replaced
966:a834e43a57da 967:eb586d3e1a6a
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 }

mercurial