QtPass  1.2.0-pre
Multi-platform GUI for pass, the standard unix password manager.
Public Slots | Public Member Functions | List of all members
TrayIcon Class Reference

Handles the systemtray icon and menu. More...

#include <trayicon.h>

+ Inheritance diagram for TrayIcon:
+ Collaboration diagram for TrayIcon:

Public Slots

void showHideParent ()
 TrayIcon::showHideParent toggle app visibility. More...
 
void iconActivated (QSystemTrayIcon::ActivationReason reason)
 TrayIcon::iconActivated you clicked on the trayicon. More...
 

Public Member Functions

 TrayIcon (QMainWindow *parent)
 TrayIcon::TrayIcon use a (system) tray icon with a nice QtPass logo on it (currently) only Quits. More...
 
void showMessage (QString title, QString msg, int time)
 TrayIcon::showMessage show a systray message for notification. More...
 
void setVisible (bool visible)
 TrayIcon::setVisible show or hide the icon. More...
 

Detailed Description

Handles the systemtray icon and menu.

Definition at line 15 of file trayicon.h.

Constructor & Destructor Documentation

◆ TrayIcon()

TrayIcon::TrayIcon ( QMainWindow *  parent)
explicit

TrayIcon::TrayIcon use a (system) tray icon with a nice QtPass logo on it (currently) only Quits.

Parameters
parent

Definition at line 8 of file trayicon.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ iconActivated

void TrayIcon::iconActivated ( QSystemTrayIcon::ActivationReason  reason)
slot

TrayIcon::iconActivated you clicked on the trayicon.

Parameters
reason

Definition at line 87 of file trayicon.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setVisible()

void TrayIcon::setVisible ( bool  visible)

TrayIcon::setVisible show or hide the icon.

Parameters
visible

Definition at line 27 of file trayicon.cpp.

◆ showHideParent

void TrayIcon::showHideParent ( )
slot

TrayIcon::showHideParent toggle app visibility.

Definition at line 76 of file trayicon.cpp.

+ Here is the caller graph for this function:

◆ showMessage()

void TrayIcon::showMessage ( QString  title,
QString  msg,
int  time 
)

TrayIcon::showMessage show a systray message for notification.

Parameters
title
msg
time

Definition at line 106 of file trayicon.cpp.

+ Here is the caller graph for this function:

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