2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 00:55:12 +00:00

fixed Qt tray icon for KDE, using Qt tray icon for all graphic envs, testing

This commit is contained in:
John Preston
2015-07-21 15:29:38 +02:00
parent c553ed6775
commit f0f0be9452
2 changed files with 19 additions and 13 deletions

View File

@@ -429,16 +429,11 @@ void Window::init() {
title = new TitleWidget(this);
psInitSize();
psUpdateWorkmode();
}
void Window::firstShow() {
#ifdef Q_OS_WIN
trayIconMenu = new ContextMenu(this);
#else
trayIconMenu = new QMenu(this);
trayIconMenu->setFont(QFont("Tahoma"));
trayIconMenu = new QMenu(this);
trayIconMenu->setFont(QFont("Tahoma"));
#endif
if (cPlatform() == dbipWindows || cPlatform() == dbipMac) {
trayIconMenu->addAction(lang(lng_minimize_to_tray), this, SLOT(minimizeToTray()))->setEnabled(true);
@@ -449,8 +444,12 @@ void Window::firstShow() {
trayIconMenu->addAction(lang(lng_quit_from_tray), this, SLOT(quitFromTray()))->setEnabled(true);
}
psFirstShow();
psInitSize();
psUpdateWorkmode();
}
void Window::firstShow() {
psFirstShow();
updateTrayMenu();
}