QtGui/qsystemtrayicon.h Source File
Go to the documentation of this file.
42 #ifndef QSYSTEMTRAYICON_H
43 #define QSYSTEMTRAYICON_H
47 #ifndef QT_NO_SYSTEMTRAYICON
57 class QSystemTrayIconPrivate;
70 Q_PROPERTY(
bool visible READ isVisible WRITE setVisible DESIGNABLE false)
86 void setContextMenu(QMenu *menu);
87 QMenu *contextMenu()
const;
91 void setIcon(
const QIcon &icon);
94 void setToolTip(
const QString &tip);
96 static bool isSystemTrayAvailable();
97 static bool supportsMessages();
101 MessageIcon icon = Information,
int msecs = 10000);
103 QRect geometry()
const;
104 bool isVisible()
const;
107 void setVisible(
bool visible);
108 inline void show() { setVisible(
true); }
109 inline void hide() { setVisible(
false); }
113 void messageClicked();
116 bool event(QEvent *event);
122 friend class QSystemTrayIconSys;
123 friend class QBalloonTip;
131 #endif // QT_NO_SYSTEMTRAYICON
132 #endif // QSYSTEMTRAYICON_H
#define QT_BEGIN_NAMESPACE