mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-19 14:30:43 -04:00
Show count of new messages in the toolbar.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5394 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
121d49e5d1
commit
2921cbaf23
7 changed files with 85 additions and 17 deletions
|
@ -27,7 +27,7 @@
|
|||
TransferUserNotify::TransferUserNotify(QObject *parent) :
|
||||
UserNotify(parent)
|
||||
{
|
||||
newCount = 0;
|
||||
newTransferCount = 0;
|
||||
|
||||
connect(NotifyQt::getInstance(), SIGNAL(downloadCompleteCountChanged(int)), this, SLOT(downloadCountChanged(int)));
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ QIcon TransferUserNotify::getMainIcon(bool hasNew)
|
|||
|
||||
unsigned int TransferUserNotify::getNewCount()
|
||||
{
|
||||
return newCount;
|
||||
return newTransferCount;
|
||||
}
|
||||
|
||||
QString TransferUserNotify::getTrayMessage(bool plural)
|
||||
|
@ -100,6 +100,6 @@ void TransferUserNotify::iconClicked()
|
|||
|
||||
void TransferUserNotify::downloadCountChanged(int count)
|
||||
{
|
||||
newCount = count;
|
||||
newTransferCount = count;
|
||||
updateIcon();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue