QtPass 1.4.0
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
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.
 
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.
 
bool getIsAllocated ()
 TrayIcon::getIsAllocated return if TrayIcon is allocated.
 

Detailed Description

Handles the systemtray icon and menu.

Definition at line 14 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 16 of file trayicon.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ getIsAllocated()

bool TrayIcon::getIsAllocated ( )

TrayIcon::getIsAllocated return if TrayIcon is allocated.

Definition at line 57 of file trayicon.cpp.

◆ iconActivated

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

TrayIcon::iconActivated you clicked on the trayicon.

Parameters
reason

Definition at line 112 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 47 of file trayicon.cpp.

◆ showHideParent

void TrayIcon::showHideParent ( )
slot

TrayIcon::showHideParent toggle app visibility.

Definition at line 101 of file trayicon.cpp.

+ Here is the caller graph for this function:

◆ showMessage()

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

TrayIcon::showMessage show a systray message for notification.

Parameters
title
msg
time

Definition at line 132 of file trayicon.cpp.

+ Here is the caller graph for this function:

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