Resetting the cursor to the end of line and resetting the line edit on changing the shadow build checkbox