1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

SystemTrayIcon: Log what backend is used

This commit is contained in:
tux3 2015-02-22 12:14:31 +01:00
parent 0fabab8f1d
commit 84e613c609
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -13,6 +13,7 @@ SystemTrayIcon::SystemTrayIcon()
#ifdef ENABLE_SYSTRAY_UNITY_BACKEND
else if (desktop.toLower() == "unity")
{
qDebug() << "SystemTrayIcon: Using Unity backend";
QString settingsDir = Settings::getSettingsDirPath();
QFile iconFile(settingsDir+"/icon.png");
if (iconFile.open(QIODevice::Truncate | QIODevice::WriteOnly))
@ -37,6 +38,7 @@ SystemTrayIcon::SystemTrayIcon()
#ifdef ENABLE_SYSTRAY_STATUSNOTIFIER_BACKEND
else if (true)
{
qDebug() << "SystemTrayIcon: Using Status Notifier backend";
backendType = SystrayBackendType::StatusNotifier;
gtk_init(nullptr, nullptr);
snMenu = gtk_menu_new();
@ -65,6 +67,7 @@ SystemTrayIcon::SystemTrayIcon()
}
else
{
qDebug() << "SystemTrayIcon: Using Qt backend";
qtIcon = new QSystemTrayIcon;
backendType = SystrayBackendType::Qt;
connect(qtIcon, &QSystemTrayIcon::activated, this, &SystemTrayIcon::activated);