42 #ifndef QSYSTEMTRAYICON_P_H 43 #define QSYSTEMTRAYICON_P_H 57 #include "private/qobject_p.h" 59 #ifndef QT_NO_SYSTEMTRAYICON 61 #include "QtGui/qmenu.h" 62 #include "QtGui/qpixmap.h" 63 #include "QtCore/qstring.h" 64 #include "QtCore/qpointer.h" 103 const QPoint& pos,
int timeout,
bool showArrow =
true);
104 static void hideBalloon();
105 static bool isBalloonVisible();
111 void balloon(
const QPoint&,
int,
bool);
125 #if defined(Q_WS_X11) 127 #include <QtCore/qcoreapplication.h> 128 #include <X11/Xlib.h> 129 #include <X11/Xatom.h> 130 #include <X11/Xutil.h> 141 SYSTEM_TRAY_REQUEST_DOCK = 0,
142 SYSTEM_TRAY_BEGIN_MESSAGE = 1,
143 SYSTEM_TRAY_CANCEL_MESSAGE =2
148 XVisualInfo* getSysTrayVisualInfo();
158 static bool sysTrayTracker(
void *message,
long *result);
159 static Window locateSystemTray();
169 #ifndef QT_NO_WHEELEVENT 183 #endif // QT_NO_SYSTEMTRAYICON 185 #endif // QSYSTEMTRAYICON_P_H void showMessage_sys(const QString &msg, const QString &title, QSystemTrayIcon::MessageIcon icon, int secs)
#define QT_END_NAMESPACE
This macro expands to.
The QWheelEvent class contains parameters that describe a wheel event.
bool deliverToolTipEvent(QEvent *e)
QRect geometry_sys() const
#define QT_END_INCLUDE_NAMESPACE
This macro is equivalent to QT_BEGIN_NAMESPACE.
static Window sysTrayWindow
The QString class provides a Unicode character string.
static bool supportsMessages_sys()
#define QT_BEGIN_NAMESPACE
This macro expands to.
static bool isSystemTrayAvailable_sys()
static QList< QSystemTrayIconSys * > trayIcons
The QResizeEvent class contains event parameters for resize events.
QSystemTrayIcon * trayIcon
The QMouseEvent class contains parameters that describe a mouse event.
#define Q_DECLARE_PUBLIC(Class)
The QTimerEvent class contains parameters that describe a timer event.
The QPoint class defines a point in the plane using integer precision.
bool(* EventFilter)(void *message, long *result)
A function with the following signature that can be used as an event filter:
The QRect class defines a rectangle in the plane using integer precision.
The QLabel widget provides a text or image display.
The QPixmap class is an off-screen image representation that can be used as a paint device...
#define QT_BEGIN_INCLUDE_NAMESPACE
This macro is equivalent to QT_END_NAMESPACE.
static Atom sysTraySelection
MessageIcon
This enum describes the icon that is shown when a balloon message is displayed.
The QPaintEvent class contains event parameters for paint events.
The QEvent class is the base class of all event classes.
static QCoreApplication::EventFilter oldEventFilter
The QSystemTrayIcon class provides an icon for an application in the system tray. ...
The QList class is a template class that provides lists.
static XVisualInfo sysTrayVisual
The QIcon class provides scalable icons in different modes and states.