From: apo Date: Thu, 20 Oct 2005 14:16:21 +0000 (+0000) Subject: To make possible to leave a message in the status bar till the next one is set. X-Git-Tag: ForTest2_3_1_0a2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=05d7953bebb5bdbb4cf82a72f47347eec0e1d3bb;p=modules%2Fgui.git To make possible to leave a message in the status bar till the next one is set. --- diff --git a/src/SUIT/SUIT_Application.cxx b/src/SUIT/SUIT_Application.cxx index f9d210d55..380820055 100755 --- a/src/SUIT/SUIT_Application.cxx +++ b/src/SUIT/SUIT_Application.cxx @@ -99,7 +99,8 @@ void SUIT_Application::putInfo ( const QString& msg, const int msec ) desktop()->statusBar()->addWidget(myStatusLabel, /*int stretch = */1); } myStatusLabel->setText(msg); - QTimer::singleShot(msec <= 0 ? DEFAULT_MESSAGE_DELAY : msec, myStatusLabel, SLOT(clear())); + if( msec != -1 ) + QTimer::singleShot(msec <= 0 ? DEFAULT_MESSAGE_DELAY : msec, myStatusLabel, SLOT(clear())); } }