swift
Public Types | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
swift::gui::CSystemTrayWindow Class Reference

QDialog which can minimize to system tray. More...

Inheritance diagram for swift::gui::CSystemTrayWindow:
[legend]

Public Types

enum  SystemTrayFlag { MinimizeToTray = 0x0 , QuitOnClose = 0x1 , AskOnClose = 0x2 }
 System Tray Flag.
 

Public Member Functions

 CSystemTrayWindow (const QIcon &icon, QWidget *parent=nullptr)
 Constructor.
 
void setSystemTrayMode (SystemTrayMode mode)
 System tray mode.
 
void setSystemTrayIcon (const QIcon &icon)
 Set icon.
 
void setSystemTrayToolTip (const QString &tooltip)
 Set tool tip.
 

Protected Slots

void ps_activateWindow (QSystemTrayIcon::ActivationReason reason)
 Activate window from system tray.
 
void ps_showMessage (const QString &title, const QString &message, QSystemTrayIcon::MessageIcon icon=QSystemTrayIcon::Information, int millisecondsTimeoutHint=10000)
 Show message in the system tray.
 

Protected Member Functions

virtual void changeEvent (QEvent *event)
 
virtual void closeEvent (QCloseEvent *event)
 

Detailed Description

QDialog which can minimize to system tray.

Definition at line 28 of file systemtraywindow.h.

Member Function Documentation

◆ changeEvent()

void swift::gui::CSystemTrayWindow::changeEvent ( QEvent *  event)
protectedvirtual

Definition at line 82 of file systemtraywindow.cpp.

◆ closeEvent()

void swift::gui::CSystemTrayWindow::closeEvent ( QCloseEvent *  event)
protectedvirtual

Definition at line 60 of file systemtraywindow.cpp.


The documentation for this class was generated from the following files: