This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
markchen
/
feiq
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
1
Fork
0
Code
Releases
3
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
防止消息累积
tags/v1.1
chenyong
8 years ago
parent
b46c5c5edf
commit
262f8c7fe5
2 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
plugin/unreadchecker.cpp
+1
-0
plugin/unreadchecker.h
+ 3
- 0
plugin/unreadchecker.cpp
View File
@@ -15,7 +15,10 @@ void UnreadChecker::timerEvent(QTimerEvent *event)
{
auto count = mFeiq->getUnreadCount();
if (count > 0)
{
PlatformDepend::instance().hideAllNotify();
PlatformDepend::instance().showNotify("未读提醒", QString("还有%1条未读消息").arg(count));
}
}
}
+ 1
- 0
plugin/unreadchecker.h
View File
@@ -19,6 +19,7 @@ protected:
private:
int mUnreadTimerInterval;
int mUnreadTimerId=-1;
int mLastCheckCount=0;
};
#endif // UNREADCHECKER_H
Write
Preview
Loading…
Cancel
Save