Fix msvc compile issue in tabwidget.