Fix warning in Tests_TabView::test_mousePressOnTabBar

Task-number: QTBUG-34666
Change-Id: I13506cc7504c71d9411e2b100bec803abb2eaccd
Reviewed-by: Liang Qi <liang.qi@digia.com>