remove some redundant paintEvent functions