5#ifndef QSYSTEMTRAYICON_P_H
6#define QSYSTEMTRAYICON_P_H
19#include <QtWidgets/private/qtwidgetsglobal_p.h>
21#include "private/qobject_p.h"
23#ifndef QT_NO_SYSTEMTRAYICON
26#include "QtWidgets/qmenu.h"
28#include "QtWidgets/qwidget.h"
29#include "QtGui/qpixmap.h"
30#include <qpa/qplatformsystemtrayicon.h>
31#include "QtCore/qbasictimer.h"
32#include "QtCore/qstring.h"
33#include "QtCore/qpointer.h"
39class QPlatformSystemTrayIcon;
45 Q_DECLARE_PUBLIC(QSystemTrayIcon)
57 void showMessage_sys(
const QString &title,
const QString &msg,
const QIcon &icon,
58 QSystemTrayIcon::MessageIcon msgIcon,
int msecs);
76 void install_sys_qpa();
77 void remove_sys_qpa();
79 void addPlatformMenu(QMenu *menu)
const;
94 QBalloonTip(
const QIcon &icon,
const QString &title,
95 const QString &msg, QSystemTrayIcon *trayIcon);
97 void balloon(
const QPoint&,
int,
bool);
106 QSystemTrayIcon *trayIcon;
static void hideBalloon()
static bool isBalloonVisible()
static void updateBalloonPosition(const QPoint &pos)
void timerEvent(QTimerEvent *e) override
This event handler can be reimplemented in a subclass to receive timer events for the object.
void mousePressEvent(QMouseEvent *e) override
This event handler, for event event, can be reimplemented in a subclass to receive mouse press events...
void paintEvent(QPaintEvent *) override
This event handler can be reimplemented in a subclass to receive paint events passed in event.
void resizeEvent(QResizeEvent *) override
This event handler can be reimplemented in a subclass to receive widget resize events which are passe...
QPainter(QPaintDevice *)
Constructs a painter that begins painting the paint device immediately.
\inmodule QtCore\reentrant
static bool isSystemTrayAvailable_sys()
~QSystemTrayIconPrivate()
QSystemTrayWatcher * trayWatcher
void _q_emitActivated(QPlatformSystemTrayIcon::ActivationReason reason)
QRect geometry_sys() const
static bool supportsMessages_sys()
QPlatformSystemTrayIcon * qpa_sys
void showMessage_sys(const QString &title, const QString &msg, const QIcon &icon, QSystemTrayIcon::MessageIcon msgIcon, int msecs)
The QSystemTrayIcon class provides an icon for an application in the system tray.
static QBalloonTip * theSolitaryBalloonTip