mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix some SystemTrayIcon issues with Qt backend
This commit is contained in:
parent
fe83dd9445
commit
4cc9f0f824
|
@ -4,7 +4,6 @@
|
|||
#include <QMenu>
|
||||
#include <QFile>
|
||||
#include <QDebug>
|
||||
#include <libdbusmenu-glib/server.h>
|
||||
#include "src/misc/settings.h"
|
||||
|
||||
SystemTrayIcon::SystemTrayIcon()
|
||||
|
@ -39,12 +38,15 @@ SystemTrayIcon::SystemTrayIcon()
|
|||
{
|
||||
qtIcon = new QSystemTrayIcon;
|
||||
backendType = SystrayBackendType::Qt;
|
||||
connect(qtIcon, &QSystemTrayIcon::activated, this, &SystemTrayIcon::activated);
|
||||
}
|
||||
}
|
||||
|
||||
QString SystemTrayIcon::extractIconToFile(QIcon icon, QString name)
|
||||
{
|
||||
QString iconPath;
|
||||
(void) icon;
|
||||
(void) name;
|
||||
#ifdef ENABLE_SYSTRAY_UNITY_BACKEND
|
||||
iconPath = Settings::getSettingsDirPath()+"/"+name+".png";
|
||||
QSize iconSize = icon.actualSize(QSize{64,64});
|
||||
|
|
|
@ -8,8 +8,9 @@
|
|||
#undef signals
|
||||
#endif
|
||||
extern "C" {
|
||||
#include <libappindicator/app-indicator.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include <libappindicator/app-indicator.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include <libdbusmenu-glib/server.h>
|
||||
}
|
||||
#define signals public
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user