diff options
author | Jiewen Wang <jiewen.wang@logicpd.com> | 2012-05-25 08:13:11 -0400 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-25 21:41:42 +0200 |
commit | 7381328bcc37283be97eedddc24c46be1e38490e (patch) | |
tree | 321ad3bb9a7a2be89469feb408c355f714cff9a9 /src/widgets | |
parent | 2848395b50346b87e28e5bb0523ae1a0aff1d0fc (diff) |
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>
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/widgets/qstatusbar.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/widgets/widgets/qstatusbar.cpp b/src/widgets/widgets/qstatusbar.cpp index 2b17d7fb83..4e6b273a3c 100644 --- a/src/widgets/widgets/qstatusbar.cpp +++ b/src/widgets/widgets/qstatusbar.cpp @@ -546,8 +546,6 @@ void QStatusBar::reformat() void QStatusBar::showMessage(const QString &message, int timeout) { Q_D(QStatusBar); - if (d->tempItem == message) - return; d->tempItem = message; |