fixed snarl icons
This commit is contained in:
parent
f553d99c04
commit
902ebb6393
|
@ -51,6 +51,8 @@ QString Notification::toSnalrString()const{
|
|||
out+=QString("#?app="+app);
|
||||
if(!alert.isEmpty())
|
||||
out+=QString("#?class="+alert);
|
||||
if(hints.contains("SnarlIcon"))
|
||||
out+=QString("#?icon="+hints.value("SnarlIcon").value<QString>());
|
||||
out+=QString("#?title="+title+"#?text="+text+"#?timeout="+QString::number(timeout));
|
||||
return out;
|
||||
}
|
||||
|
|
|
@ -87,6 +87,7 @@ SnarlNotification Parser::parse(QString &msg,QTcpSocket* client){
|
|||
sNotification.notification->text=value;
|
||||
break;
|
||||
case ICON:
|
||||
sNotification.notification->hints.insert("SnarlIcon",value);
|
||||
sNotification.notification->setIcon(downloadIcon(value));
|
||||
break;
|
||||
case CLASS:
|
||||
|
|
Loading…
Reference in New Issue