|
QtPass 1.6.0
Multi-platform GUI for pass, the standard unix password manager.
|
Handles the systemtray icon and menu. More...
#include <trayicon.h>
Public Slots | |
| void | showHideParent () |
| TrayIcon::showHideParent toggle app visibility. | |
| void | iconActivated (QSystemTrayIcon::ActivationReason reason) |
| TrayIcon::iconActivated you clicked on the trayicon. | |
Public Member Functions | |
| TrayIcon (QMainWindow *parent) | |
| TrayIcon::TrayIcon use a (system) tray icon with a nice QtPass logo on it (currently) only Quits. | |
| void | showMessage (const QString &title, const QString &msg, int time) |
| TrayIcon::showMessage show a systray message for notification. | |
| void | setVisible (bool visible) |
| TrayIcon::setVisible show or hide the icon. | |
| auto | getIsAllocated () -> bool |
| TrayIcon::getIsAllocated return if TrayIcon is allocated. | |
Handles the systemtray icon and menu.
Construct a TrayIcon associated with the given main window.
| parent | Pointer to the QMainWindow this tray icon controls and mirrors. Display a transient notification message via the tray icon. |
| title | Title text of the notification. |
| msg | Body text of the notification. |
| time | Duration to display the notification in milliseconds. Show or hide the tray-related UI and behavior. |
| visible | true to make tray UI active/visible, false to deactivate/hide it. Report whether tray resources have been allocated and initialized. |
| reason | The activation reason provided by QSystemTrayIcon. Create and configure the tray menu actions (show, hide, minimize, maximize, restore, quit). Initialize the QSystemTrayIcon and its context menu, wiring actions and event handling. |
Definition at line 51 of file trayicon.h.
|
explicit |
TrayIcon::TrayIcon use a (system) tray icon with a nice QtPass logo on it (currently) only Quits.
| parent |
Definition at line 18 of file trayicon.cpp.
| auto TrayIcon::getIsAllocated | ( | ) | -> bool |
TrayIcon::getIsAllocated return if TrayIcon is allocated.
Definition at line 61 of file trayicon.cpp.
|
slot |
TrayIcon::iconActivated you clicked on the trayicon.
| reason |
Definition at line 124 of file trayicon.cpp.
| void TrayIcon::setVisible | ( | bool | visible | ) |
TrayIcon::setVisible show or hide the icon.
| visible |
Definition at line 50 of file trayicon.cpp.
|
slot |
TrayIcon::showHideParent toggle app visibility.
Definition at line 112 of file trayicon.cpp.
| void TrayIcon::showMessage | ( | const QString & | title, |
| const QString & | msg, | ||
| int | time ) |
TrayIcon::showMessage show a systray message for notification.
| title | |
| msg | |
| time |
Definition at line 144 of file trayicon.cpp.