fix(libnotification):超时时间默认单位统一设置为毫秒
This commit is contained in:
parent
b126455c0d
commit
81b9e5f92f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue