From 452faffa4b544a9a433bbb11086d1da9a87a1ce1 Mon Sep 17 00:00:00 2001 From: defnax Date: Mon, 6 Sep 2010 20:54:48 +0000 Subject: [PATCH] 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 --- .../src/gui/chat/PopupChatDialog.cpp | 4 +- .../src/gui/chat/PopupChatDialog.ui | 36 +++++++++++++++--- retroshare-gui/src/gui/images/typing.png | Bin 877 -> 741 bytes 3 files changed, 34 insertions(+), 6 deletions(-) diff --git a/retroshare-gui/src/gui/chat/PopupChatDialog.cpp b/retroshare-gui/src/gui/chat/PopupChatDialog.cpp index c807145f7..cca7dc6b2 100644 --- a/retroshare-gui/src/gui/chat/PopupChatDialog.cpp +++ b/retroshare-gui/src/gui/chat/PopupChatDialog.cpp @@ -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())) ; } diff --git a/retroshare-gui/src/gui/chat/PopupChatDialog.ui b/retroshare-gui/src/gui/chat/PopupChatDialog.ui index 3a7d527aa..bf96ca57b 100644 --- a/retroshare-gui/src/gui/chat/PopupChatDialog.ui +++ b/retroshare-gui/src/gui/chat/PopupChatDialog.ui @@ -222,7 +222,7 @@ border-image: url(:/images/avatarstatus_bg.png); QFrame::Raised - + 2 @@ -405,11 +405,11 @@ p, li { white-space: pre-wrap; } - + - 1 + 0 - + @@ -422,7 +422,7 @@ p, li { white-space: pre-wrap; } - + @@ -443,6 +443,28 @@ background: white;} + + + + + 18 + 18 + + + + + 18 + 18 + + + + T + + + Qt::AlignCenter + + + @@ -955,6 +977,10 @@ p, li { white-space: pre-wrap; } + + + + diff --git a/retroshare-gui/src/gui/images/typing.png b/retroshare-gui/src/gui/images/typing.png index 316e83d60b0c4aabf97e9a913aaacd3e87e3fb04..28580e9a6938084f208998b9db945d363f8e9baa 100644 GIT binary patch literal 741 zcmVSG(n3rXCorwMFdTCXD&NCe|BuLYho~sdEsq_ zd4Ds{Gw(aZdylIKdLIy&0&-fyRA zdQJ){rAa9nrSxH|)q2`)x7+o49fXhzCr_tSj7Fo;;o;$vq9|UaY3eGFl#(&VUdM5~ zGCMm9N+}2-p!A~hqA1|K$9O!(a5(H+YagU(>dKw#ola*(2mxaZthI2?!8r%-eU;^! zwH87M%+JrSP)gSUfW>iqLkRJ**=+vNOUOA{rTh|D6a}ocpp+uZvW0_#gB}O46h#rn z<1rXx;G822L)2tSPK140Pw?CfB5brk?$jKOp|g;ENX(gp>vebxu>JqCjT_V@Q;t;Oc%CI*86 zj4{~T+k=#{GW<-wA^m=z5kkJr%*@QyYPCv|5CTyYAqWBxLg2lJF$Q^_Ln#HN6tXNs zmSw|}laqz=`ELe6uqA}(lz=b{5r!ccV-?6b2dy=<)+O+xQtD2UBtOnJWRr9LHj1LS zgp@{?pwe)yb)mJEd7eLBUS9rwuCq^JF919Wf?yH^!7s+x9Ho?Z=&HpiLw*lM-@H|b^ua^~F3i{u;vj6Be X%nN3>AtaCj00000NkvXXu0mjf8(=#g literal 877 zcmV-z1CsoSP)HxLPM+syy~0{Tfr zK~#9!rISxc8+jbXUotUHGvhjnH6;>5)saFL0(ztf{ zwNjH>yw$eUgZ3mu>4?231Oycti3TGmGZ<8K1_$T&bN)DcYH8Umd)RkDuI^_+5biB6FMk{v8Tk{y^>+sh4GrBEMX@^)i98GjgLi|$pr7Y? zlu9LJG8q&Kh2in>@h1S>&lxWO#N+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