mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-12 16:15:43 -04:00
new notify capability of chat lobbies: message counting, nickname occurrence counting and specific text counting. Also sorts out notify tab in Settings (Patch from Phenom, slightly modified: gui layout/text + added a flag to enable/disable user defined text grep)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8082 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
9d2b6faf9c
commit
e40460bdcc
18 changed files with 1045 additions and 392 deletions
|
@ -116,6 +116,7 @@ void UserNotify::createIcons(QMenu *notifyMenu)
|
|||
if (mNotifyIcon == NULL) {
|
||||
mNotifyIcon = notifyMenu->addAction(getIcon(), "", this, SLOT(trayIconClicked()));
|
||||
mNotifyIcon->setVisible(false);
|
||||
connect(mNotifyIcon, SIGNAL(hovered()), this, SLOT(trayIconHovered()));
|
||||
}
|
||||
} else {
|
||||
DELETE_OBJECT(mNotifyIcon);
|
||||
|
@ -212,11 +213,16 @@ QString UserNotify::getNotifyMessage(bool plural)
|
|||
|
||||
void UserNotify::trayIconClicked(QSystemTrayIcon::ActivationReason e)
|
||||
{
|
||||
if (e == QSystemTrayIcon::Trigger || e == QSystemTrayIcon::DoubleClick) {
|
||||
if (e == QSystemTrayIcon::Trigger || e == QSystemTrayIcon::DoubleClick || e == QSystemTrayIcon::Context) {
|
||||
iconClicked();
|
||||
}
|
||||
}
|
||||
|
||||
void UserNotify::trayIconHovered()
|
||||
{
|
||||
iconHovered();
|
||||
}
|
||||
|
||||
void UserNotify::blink(bool on)
|
||||
{
|
||||
if (mTrayIcon) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue