Qucs / qucs

Qucs Project official mirror
http://qucs.sourceforge.net/
GNU General Public License v2.0
1.16k stars 213 forks source link

Mouse refactor #827

Closed felix-salfelder closed 5 years ago

felix-salfelder commented 6 years ago

protect coordinates in Element. and fix some type issues.

this is excessively used in mouseactions. doing it first, so it can be tested/bisected

felix-salfelder commented 6 years ago

this is ready for now. please merge when/if green.

felix-salfelder commented 6 years ago

ok, hold on. this messes up some of the coordinates.

the previous code had 3 sets of coordinates per mouse event. something broke when i removed the extra arguments float fX, fY as in qt5-* (totally makes sense) and use Event->pos instead.

felix-salfelder commented 5 years ago

part of some qt5 branch