Changeset 118 for smplayer/vendor/current/src/baseguiplus.cpp
- Timestamp:
- Dec 22, 2011, 6:27:52 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/baseguiplus.cpp
r90 r118 1 1 /* smplayer, GUI front-end for mplayer. 2 Copyright (C) 2006-201 0Ricardo Villalba <rvm@escomposlinux.org>2 Copyright (C) 2006-2011 Ricardo Villalba <rvm@escomposlinux.org> 3 3 4 4 This program is free software; you can redistribute it and/or modify … … 77 77 connect( showTrayAct, SIGNAL(toggled(bool)), 78 78 tray, SLOT(setVisible(bool)) ); 79 80 #ifndef Q_OS_OS2 79 81 optionsMenu->addAction(showTrayAct); 82 #else 83 trayAvailable(); 84 connect( optionsMenu, SIGNAL(aboutToShow()), 85 this, SLOT(trayAvailable()) ); 86 #endif 80 87 81 88 showAllAct = new MyAction(this, "restore/hide"); … … 149 156 150 157 bool BaseGuiPlus::startHidden() { 151 #if def Q_OS_WIN158 #if defined(Q_OS_WIN) || defined(Q_OS_OS2) 152 159 return false; 153 160 #else … … 607 614 } 608 615 616 #ifdef Q_OS_OS2 617 // we test if xcenter is available at all. if not disable the tray action. this is possible when xcenter is not opened or crashed 618 void BaseGuiPlus::trayAvailable() { 619 if (!tray->isSystemTrayAvailable()) { 620 optionsMenu->removeAction(showTrayAct); 621 } 622 else { 623 optionsMenu->addAction(showTrayAct); 624 } 625 } 626 #endif 627 609 628 #include "moc_baseguiplus.cpp"
Note:
See TracChangeset
for help on using the changeset viewer.