mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 06:35:08 -04:00
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:
parent
a3fc110a82
commit
452faffa4b
3 changed files with 34 additions and 6 deletions
|
@ -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())) ;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue