mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-15 05:12:04 +08:00
添加商店内弹出窗消息
使用SpkUiMessage::SendStoreNotification激活,必须在SpkStore构造函数加载完全局SpkPopup类之后才可 使用。
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
|
||||
#include "spkuimsg.h"
|
||||
#include "spkpopup.h"
|
||||
|
||||
NotifyNotification *SpkUiMessage::_notify = nullptr; // Initialize statics
|
||||
int SpkUiMessage::mTimeoutDesktop = 5000;
|
||||
@@ -25,7 +26,7 @@ void SpkUiMessage::SendDesktopNotification(QString s, const char * const icon)
|
||||
|
||||
void SpkUiMessage::SendStoreNotification(QString s) // TODO: IMPLEMENT IN-APP NOTIFICATION
|
||||
{
|
||||
Q_UNUSED(s);
|
||||
SpkUi::Popup->Show(s);
|
||||
}
|
||||
|
||||
void SpkUiMessage::SetDesktopNotifyTimeout(int ms)
|
||||
|
||||
Reference in New Issue
Block a user