Refactor systemtrayicon code
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "osdmac.h"
|
||||
#include <memory>
|
||||
|
||||
#include <QBuffer>
|
||||
#include <QByteArray>
|
||||
@@ -30,6 +30,8 @@
|
||||
|
||||
#include "core/scoped_nsobject.h"
|
||||
|
||||
#include "osdmac.h"
|
||||
|
||||
namespace {
|
||||
|
||||
bool NotificationCenterSupported() {
|
||||
@@ -52,7 +54,7 @@ void SendNotificationCenterMessage(NSString *title, NSString *subtitle) {
|
||||
|
||||
} // namespace
|
||||
|
||||
OSDMac::OSDMac(SystemTrayIcon *tray_icon, Application *app, QObject *parent) : OSDBase(tray_icon, app, parent) {}
|
||||
OSDMac::OSDMac(std::shared_ptr<SystemTrayIcon> tray_icon, Application *app, QObject *parent) : OSDBase(tray_icon, app, parent) {}
|
||||
|
||||
OSDMac::~OSDMac() = default;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user