switch case in mouse move event of curvewidget