fix(libnotification):超时时间默认单位统一设置为毫秒
This commit is contained in:
parent
3c08ac3fa1
commit
5c619dffdb
|
@ -55,7 +55,7 @@ public:
|
||||||
QString m_display;
|
QString m_display;
|
||||||
QStringList m_actionState;
|
QStringList m_actionState;
|
||||||
bool m_noFold = false;
|
bool m_noFold = false;
|
||||||
int m_popupTimeout = 6;
|
int m_popupTimeout = 6000; //ms
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
using namespace UkuiNotification;
|
using namespace UkuiNotification;
|
||||||
|
@ -290,7 +290,7 @@ void PopupNotification::setHints(const QVariantMap &hints)
|
||||||
break;
|
break;
|
||||||
case 1: //中等级,弹窗时间默认6秒
|
case 1: //中等级,弹窗时间默认6秒
|
||||||
setUrgency(Urgency::NormalUrgency);
|
setUrgency(Urgency::NormalUrgency);
|
||||||
d->m_popupTimeout = 6;
|
d->m_popupTimeout = 6000;
|
||||||
break;
|
break;
|
||||||
case 2: //高等级,默认弹窗常驻,不可折叠
|
case 2: //高等级,默认弹窗常驻,不可折叠
|
||||||
setUrgency(Urgency::CriticalUrgency);
|
setUrgency(Urgency::CriticalUrgency);
|
||||||
|
|
Loading…
Reference in New Issue