-class SystemTray : public QObject {
- Q_OBJECT
- Q_ENUMS(State Mode MessageIcon ActivationReason)
-
-public:
- enum State {
- Passive,
- Active,
- NeedsAttention
- };
-
- enum Mode {
- Invalid,
- Legacy,
- StatusNotifier
- };
-
- // same as in QSystemTrayIcon
- enum MessageIcon {
- NoIcon,
- Information,
- Warning,
- Critical
- };
-
- // same as in QSystemTrayIcon
- enum ActivationReason {
- Unknown,
- Context,
- DoubleClick,
- Trigger,
- MiddleClick
- };
-
- explicit SystemTray(QWidget *parent);
- virtual ~SystemTray();
- virtual void init();
-
- inline State state() const;
- inline bool isAlerted() const;
- virtual inline bool isSystemTrayAvailable() const;
-
- void setAlert(bool alerted);
- virtual inline bool isVisible() const { return false; }
-
- QWidget *associatedWidget() const;
+class SystemTray : public QObject
+{
+ Q_OBJECT
+ Q_ENUMS(State Mode MessageIcon ActivationReason)
+
+public :
+ enum State {
+ Passive,
+ Active,
+ NeedsAttention
+ };
+
+ enum Mode {
+ Invalid,
+ Legacy,
+ StatusNotifier
+ };
+
+ // same as in QSystemTrayIcon
+ enum MessageIcon {
+ NoIcon,
+ Information,
+ Warning,
+ Critical
+ };
+
+ // same as in QSystemTrayIcon
+ enum ActivationReason {
+ Unknown,
+ Context,
+ DoubleClick,
+ Trigger,
+ MiddleClick
+ };
+
+ explicit SystemTray(QWidget *parent);
+ virtual ~SystemTray();
+ virtual void init();
+
+ inline Mode mode() const;
+ inline State state() const;
+ inline bool isAlerted() const;
+ virtual inline bool isSystemTrayAvailable() const;
+
+ void setAlert(bool alerted);
+ virtual inline bool isVisible() const { return false; }
+
+ QWidget *associatedWidget() const;