1
0
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:
Tux3 / Mlkj / !Lev.uXFMLA 2015-01-29 17:44:23 +01:00
parent fe83dd9445
commit 4cc9f0f824
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
2 changed files with 6 additions and 3 deletions

View File

@ -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});

View File

@ -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