Document trayicon_sni
This commit is contained in:
@@ -5,15 +5,32 @@
|
||||
|
||||
#include <KStatusNotifierItem>
|
||||
|
||||
/**
|
||||
* @class TrayIcon
|
||||
*
|
||||
* A class inheriting KStatusNotifierItem to provide a tray icon.
|
||||
*
|
||||
* @sa KStatusNotifierItem
|
||||
*/
|
||||
class TrayIcon : public KStatusNotifierItem
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
TrayIcon(QObject *parent = nullptr);
|
||||
|
||||
/**
|
||||
* @brief Show the tray icon.
|
||||
*/
|
||||
void show();
|
||||
|
||||
/**
|
||||
* @brief Hide the tray icon.
|
||||
*/
|
||||
void hide();
|
||||
|
||||
Q_SIGNALS:
|
||||
/**
|
||||
* @brief Triggered when the system tray icon is clicked to request NeoChat be shown.
|
||||
*/
|
||||
void showWindow();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user