Added a pixmap Label for display the typing icon for Private Chat

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3452 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-09-06 20:54:48 +00:00
parent a3fc110a82
commit 452faffa4b
3 changed files with 34 additions and 6 deletions

View file

@ -413,7 +413,8 @@ void PopupChatDialog::contextMenu( QPoint point )
void PopupChatDialog::resetStatusBar()
{
ui.statusLabel->setText(QString("")) ;
ui.statusLabel->clear();
ui.typingpixmapLabel->clear();
}
void PopupChatDialog::updateStatusTyping()
@ -435,6 +436,7 @@ void PopupChatDialog::updateStatusString(const QString& peer_id, const QString&
{
QString status = QString::fromStdString(rsPeers->getPeerName(peer_id.toStdString())) + " " + tr(status_string.toAscii());
ui.statusLabel->setText(status) ; // displays info for 5 secs.
ui.typingpixmapLabel->setPixmap(QPixmap(":images/typing.png") );
QTimer::singleShot(5000,this,SLOT(resetStatusBar())) ;
}