diff --git a/libukui-notification/popup-notification.cpp b/libukui-notification/popup-notification.cpp index c8cf8a4..c25a156 100644 --- a/libukui-notification/popup-notification.cpp +++ b/libukui-notification/popup-notification.cpp @@ -55,7 +55,7 @@ public: QString m_display; QStringList m_actionState; bool m_noFold = false; - int m_popupTimeout = 6; + int m_popupTimeout = 6000; //ms }; } using namespace UkuiNotification; @@ -290,7 +290,7 @@ void PopupNotification::setHints(const QVariantMap &hints) break; case 1: //中等级,弹窗时间默认6秒 setUrgency(Urgency::NormalUrgency); - d->m_popupTimeout = 6; + d->m_popupTimeout = 6000; break; case 2: //高等级,默认弹窗常驻,不可折叠 setUrgency(Urgency::CriticalUrgency);