QStatusBar::showMessage will always take new timeout
authorJiewen Wang <jiewen.wang@logicpd.com>
Fri, 25 May 2012 12:13:11 +0000 (08:13 -0400)
committerQt by Nokia <qt-info@nokia.com>
Fri, 25 May 2012 19:41:42 +0000 (21:41 +0200)
commit7381328bcc37283be97eedddc24c46be1e38490e
tree321ad3bb9a7a2be89469feb408c355f714cff9a9
parent2848395b50346b87e28e5bb0523ae1a0aff1d0fc
QStatusBar::showMessage will always take new timeout

There is a message check in QStatusBar::showMessage causing the call exits
early if the new 'message' is the same
as the current message. The check has been removed, and new timeout will
always take effect. Unit test is added as well.

Change-Id: I3a03c6842835824caba4adc37c3ed834952c4bb2
Task-Id: QTBUG-25492
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
src/widgets/widgets/qstatusbar.cpp
tests/auto/widgets/widgets/qstatusbar/tst_qstatusbar.cpp