4#ifndef QSYSTEMTRAYICON_P_H
5#define QSYSTEMTRAYICON_P_H
18#include <QtWidgets/private/qtwidgetsglobal_p.h>
20#include "private/qobject_p.h"
22#ifndef QT_NO_SYSTEMTRAYICON
25#include "QtWidgets/qmenu.h"
27#include "QtWidgets/qwidget.h"
28#include "QtGui/qpixmap.h"
29#include <qpa/qplatformsystemtrayicon.h>
30#include "QtCore/qstring.h"
31#include "QtCore/qpointer.h"
74 void install_sys_qpa();
75 void remove_sys_qpa();
95 void balloon(
const QPoint&,
int,
bool);
static void hideBalloon()
static bool isBalloonVisible()
static void updateBalloonPosition(const QPoint &pos)
static void showBalloon(const QIcon &icon, const QString &title, const QString &msg, QSystemTrayIcon *trayIcon, const QPoint &pos, int timeout, bool showArrow=true)
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...
The QIcon class provides scalable icons in different modes and states.
The QLabel widget provides a text or image display.
The QPaintEvent class contains event parameters for paint events.
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QResizeEvent class contains event parameters for resize events.
\macro QT_RESTRICTED_CAST_FROM_ASCII
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.
MessageIcon
This enum describes the icon that is shown when a balloon message is displayed.
Combined button and popup list for selecting options.
GLbitfield GLuint64 timeout
[4]