Fixing code example of QSystemTrayIcon

This commit is contained in:
Dimitar Nestorov 2019-11-01 21:12:18 +02:00 committed by GitHub
parent 2ce0247063
commit 1b20031cd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ const trayIcon = new QIcon(
const tray = new QSystemTrayIcon();
tray.show();
global.trayIcon = trayIcon; // prevent's gc of trayIcon
global.tray = tray; // prevents garbage collection of tray
```
### `new QSystemTrayIcon(parent?)`