mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-04 23:25:32 -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
|
@ -372,7 +372,7 @@ MainWindow::MainWindow(QWidget* parent, Qt::WFlags flags)
|
|||
for (notifyIt = notify.begin(); notifyIt != notify.end(); ++notifyIt) {
|
||||
UserNotify *userNotify = notifyIt->first->getUserNotify(this);
|
||||
if (userNotify) {
|
||||
userNotify->initialize(notifyIt->second);
|
||||
userNotify->initialize(ui.toolBar, notifyIt->second);
|
||||
connect(userNotify, SIGNAL(countChanged()), this, SLOT(updateTrayCombine()));
|
||||
userNotifyList.push_back(userNotify);
|
||||
}
|
||||
|
@ -660,9 +660,9 @@ void MainWindow::postModDirectories(bool update_local)
|
|||
}
|
||||
|
||||
/** Creates a new action associated with a config page. */
|
||||
QAction* MainWindow::createPageAction(QIcon img, QString text, QActionGroup *group)
|
||||
QAction *MainWindow::createPageAction(const QIcon &icon, const QString &text, QActionGroup *group)
|
||||
{
|
||||
QAction *action = new QAction(img, text, group);
|
||||
QAction *action = new QAction(icon, text, group);
|
||||
action->setCheckable(true);
|
||||
action->setFont(FONT);
|
||||
return action;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue