Disable system tray icon on Mac OS X

This commit is contained in:
Christophe Dumez
2012-02-22 20:06:11 +02:00
parent e8da08906c
commit 54793e4195
3 changed files with 12 additions and 4 deletions

View File

@@ -109,10 +109,14 @@ options_imp::options_imp(QWidget *parent):
// Load options
loadOptions();
// Disable systray integration if it is not supported by the system
if(!QSystemTrayIcon::isSystemTrayAvailable()){
#ifndef Q_WS_MAC
if (!QSystemTrayIcon::isSystemTrayAvailable()) {
#endif
checkShowSystray->setChecked(false);
checkShowSystray->setEnabled(false);
#ifndef Q_WS_MAC
}
#endif
#if !defined(Q_WS_X11)
label_trayIconStyle->setVisible(false);
comboTrayIcon->setVisible(false);