Added left() and right() to QRect, added more methods to QPainter, added leave, enter, resize event to QWidget.