mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-05 21:04:14 -04:00
Fix UserNotify ToolTip
This commit is contained in:
parent
33007f902f
commit
e2e89dc971
17 changed files with 121 additions and 80 deletions
|
@ -45,3 +45,14 @@ unsigned int NewsFeedUserNotify::getNewCount()
|
|||
{
|
||||
return mNewFeedCount;
|
||||
}
|
||||
|
||||
|
||||
QString NewsFeedUserNotify::getTrayMessage(bool plural)
|
||||
{
|
||||
return plural ? tr("You have %1 logged events") : tr("You have %1 logged event");
|
||||
}
|
||||
|
||||
QString NewsFeedUserNotify::getNotifyMessage(bool plural)
|
||||
{
|
||||
return plural ? tr("%1 logged events") : tr("%1 logged event");
|
||||
}
|
||||
|
|
|
@ -29,16 +29,18 @@ class NewsFeedUserNotify : public UserNotify
|
|||
{
|
||||
Q_OBJECT
|
||||
|
||||
virtual QString textInfo() const override { return tr("logged event(s)"); }
|
||||
public:
|
||||
NewsFeedUserNotify(NewsFeed *newsFeed, QObject *parent = 0);
|
||||
explicit NewsFeedUserNotify(NewsFeed *newsFeed, QObject *parent = 0);
|
||||
|
||||
private slots:
|
||||
void newsFeedChanged(int count);
|
||||
|
||||
private:
|
||||
virtual QIcon getMainIcon(bool hasNew);
|
||||
virtual unsigned int getNewCount();
|
||||
virtual QIcon getMainIcon(bool hasNew) override;
|
||||
virtual unsigned int getNewCount() override;
|
||||
|
||||
virtual QString getTrayMessage(bool plural) override;
|
||||
virtual QString getNotifyMessage(bool plural) override;
|
||||
|
||||
private:
|
||||
unsigned int mNewFeedCount;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue