From 1b20031cd70f4e835f29a05b25ed16b1c8ba3b66 Mon Sep 17 00:00:00 2001 From: Dimitar Nestorov Date: Fri, 1 Nov 2019 21:12:18 +0200 Subject: [PATCH] Fixing code example of QSystemTrayIcon --- website/docs/api/QSystemTrayIcon.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/api/QSystemTrayIcon.md b/website/docs/api/QSystemTrayIcon.md index e4f41f675..a2c274f60 100644 --- a/website/docs/api/QSystemTrayIcon.md +++ b/website/docs/api/QSystemTrayIcon.md @@ -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?)`