2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

tray icon by libappindicator with gtk_status_icon fallback added, unity launcher count added

This commit is contained in:
John Preston
2015-01-15 17:22:15 +03:00
parent ac5834c863
commit 1a8444740a
15 changed files with 655 additions and 67 deletions

View File

@@ -80,11 +80,14 @@ public slots:
void psUpdateDelegate();
void psSavePosition(Qt::WindowState state = Qt::WindowActive);
void psIdleTimeout();
void psShowTrayMenu();
void psShowTrayMenu();
protected:
void psNotIdle() const;
bool psHasTrayIcon() const {
return trayIcon;
}
bool posInited;
QSystemTrayIcon *trayIcon;
@@ -92,7 +95,8 @@ protected:
QImage icon256, iconbig256;
QIcon wndIcon;
virtual void setupTrayIcon() = 0;
void psTrayMenuUpdated();
void psSetupTrayIcon();
QTimer psUpdatedPositionTimer;