Fix MacOS build.
This commit is contained in:
parent
c80ff1380e
commit
dd5c361b32
|
@ -117,5 +117,6 @@ win32 {
|
||||||
}
|
}
|
||||||
|
|
||||||
mac {
|
mac {
|
||||||
|
QMAKE_LFLAGS += -framework Foundation -framework Cocoa
|
||||||
SOURCES += src/notifications/managermac.mm
|
SOURCES += src/notifications/managermac.mm
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,7 @@ NotificationsManager::postNotification(
|
||||||
notif.title = roomName.toNSString();
|
notif.title = roomName.toNSString();
|
||||||
notif.subtitle = QString("%1 sent a message").arg(senderName).toNSString();
|
notif.subtitle = QString("%1 sent a message").arg(senderName).toNSString();
|
||||||
notif.informativeText = text.toNSString();
|
notif.informativeText = text.toNSString();
|
||||||
|
notif.soundName = NSUserNotificationDefaultSoundName;
|
||||||
|
|
||||||
[[NSUserNotificationCenter defaultUserNotificationCenter] deliverNotification: notif];
|
[[NSUserNotificationCenter defaultUserNotificationCenter] deliverNotification: notif];
|
||||||
[notif autorelease];
|
[notif autorelease];
|
||||||
|
|
Loading…
Reference in New Issue