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