From a0e426a52713377d51701e959ec4ecfa02a6c98f Mon Sep 17 00:00:00 2001 From: defnax Date: Sat, 28 Aug 2010 14:59:49 +0000 Subject: [PATCH] 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 --- .../src/gui/chat/PopupChatDialog.cpp | 4 +- .../src/gui/chat/PopupChatDialog.ui | 68 ++++++++++++------- 2 files changed, 47 insertions(+), 25 deletions(-) diff --git a/retroshare-gui/src/gui/chat/PopupChatDialog.cpp b/retroshare-gui/src/gui/chat/PopupChatDialog.cpp index aa6944e94..0122bf15a 100644 --- a/retroshare-gui/src/gui/chat/PopupChatDialog.cpp +++ b/retroshare-gui/src/gui/chat/PopupChatDialog.cpp @@ -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())) ; } diff --git a/retroshare-gui/src/gui/chat/PopupChatDialog.ui b/retroshare-gui/src/gui/chat/PopupChatDialog.ui index 82f9558e8..53ec892c8 100644 --- a/retroshare-gui/src/gui/chat/PopupChatDialog.ui +++ b/retroshare-gui/src/gui/chat/PopupChatDialog.ui @@ -27,12 +27,9 @@ 0 - + 1 - - 2 - @@ -105,7 +102,7 @@ - 118 + 120 16777215 @@ -117,13 +114,13 @@ - 0 + 2 0 - 0 + 2 9 @@ -291,7 +288,7 @@ border-image: url(:/images/closepressed.png) Qt::Vertical - 5 + 2 @@ -331,24 +328,46 @@ p, li { white-space: pre-wrap; } false - - - - 0 - 0 - - - - - 0 - 30 - - - - QTextEdit{border: 1px solid #B8B6B1; + + + + 1 + + + + + + + + 0 + + + 3 + + + + + + + + 0 + 0 + + + + + 0 + 30 + + + + QTextEdit{border: 1px solid #B8B6B1; border-radius: 6px; background: white;} - + + + + @@ -810,6 +829,7 @@ border: 1px solid #CCCCCC; +