Update widget.h

adjust only for qt5.1