Added a Status Label for typing..., to display on top of the textedit and not more on statusbar.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3400 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-08-28 14:59:49 +00:00
parent d352621f74
commit a0e426a527
2 changed files with 47 additions and 25 deletions

View file

@ -360,6 +360,7 @@ void PopupChatDialog::contextMenu( QPoint point )
void PopupChatDialog::resetStatusBar()
{
statusBar()->showMessage(tr("Chatting with ") + QString::fromStdString(dialogName)) ;
ui.statusLabel->setText(QString("")) ;
}
void PopupChatDialog::updateStatusTyping()
@ -376,7 +377,8 @@ void PopupChatDialog::updateStatusTyping()
//
void PopupChatDialog::updateStatusString(const QString& status_string)
{
statusBar()->showMessage(status_string,5000) ; // displays info for 5 secs.
//statusBar()->showMessage(status_string,5000) ; // displays info for 5 secs.
ui.statusLabel->setText(status_string) ; // displays info for 5 secs.
QTimer::singleShot(5000,this,SLOT(resetStatusBar())) ;
}