mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-26 16:09:35 -05:00
Changed the icon of the PopupChatDialog when the friend is typing.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3455 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
948a583465
commit
f254a7ae24
@ -54,6 +54,9 @@
|
|||||||
|
|
||||||
#define appDir QApplication::applicationDirPath()
|
#define appDir QApplication::applicationDirPath()
|
||||||
|
|
||||||
|
#define IMAGE_WINDOW ":/images/rstray3.png"
|
||||||
|
#define IMAGE_WINDOW_TYPING ":/images/typing.png"
|
||||||
|
|
||||||
/* Define the format used for displaying the date and time */
|
/* Define the format used for displaying the date and time */
|
||||||
#define DATETIME_FMT "MMM dd hh:mm:ss"
|
#define DATETIME_FMT "MMM dd hh:mm:ss"
|
||||||
|
|
||||||
@ -145,7 +148,7 @@ PopupChatDialog::PopupChatDialog(std::string id, std::string name,
|
|||||||
QString title = tr("RetroShare - ") + QString::fromStdString(name) ;
|
QString title = tr("RetroShare - ") + QString::fromStdString(name) ;
|
||||||
setWindowTitle(title);
|
setWindowTitle(title);
|
||||||
|
|
||||||
setWindowIcon(QIcon(QString(":/images/rstray3.png")));
|
setWindowIcon(QIcon(IMAGE_WINDOW));
|
||||||
|
|
||||||
ui.textboldButton->setIcon(QIcon(QString(":/images/edit-bold.png")));
|
ui.textboldButton->setIcon(QIcon(QString(":/images/edit-bold.png")));
|
||||||
ui.textunderlineButton->setIcon(QIcon(QString(":/images/edit-underline.png")));
|
ui.textunderlineButton->setIcon(QIcon(QString(":/images/edit-underline.png")));
|
||||||
@ -415,6 +418,8 @@ void PopupChatDialog::resetStatusBar()
|
|||||||
{
|
{
|
||||||
ui.statusLabel->clear();
|
ui.statusLabel->clear();
|
||||||
ui.typingpixmapLabel->clear();
|
ui.typingpixmapLabel->clear();
|
||||||
|
|
||||||
|
setWindowIcon(QIcon(IMAGE_WINDOW));
|
||||||
}
|
}
|
||||||
|
|
||||||
void PopupChatDialog::updateStatusTyping()
|
void PopupChatDialog::updateStatusTyping()
|
||||||
@ -438,6 +443,10 @@ void PopupChatDialog::updateStatusString(const QString& peer_id, const QString&
|
|||||||
ui.statusLabel->setText(status) ; // displays info for 5 secs.
|
ui.statusLabel->setText(status) ; // displays info for 5 secs.
|
||||||
ui.typingpixmapLabel->setPixmap(QPixmap(":images/typing.png") );
|
ui.typingpixmapLabel->setPixmap(QPixmap(":images/typing.png") );
|
||||||
|
|
||||||
|
if (status_string == "is typing...") {
|
||||||
|
setWindowIcon(QIcon(IMAGE_WINDOW_TYPING));
|
||||||
|
}
|
||||||
|
|
||||||
QTimer::singleShot(5000,this,SLOT(resetStatusBar())) ;
|
QTimer::singleShot(5000,this,SLOT(resetStatusBar())) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user