Fix build with QT_NO_SYSTEMTRAYICON
(cherry picked from commit 2e241f12751c5150f020d217f0ff22f741e86916)