Changeset 49706 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Nov 28, 2013 7:08:22 PM (11 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVMDesktop.cpp
r47170 r49706 23 23 #include <QStackedWidget> 24 24 #include <QToolButton> 25 #ifdef Q_WS_MAC 26 # include <QTimer> 27 #endif /* Q_WS_MAC */ 25 28 26 29 /* GUI includes */ … … 229 232 m_pHeaderBtn->setIcon(Snap, UIIconPool::iconSet(":/snapshot_take_16px.png", 230 233 ":/snapshot_take_disabled_16px.png")); 231 m_pHeaderBtn->animateClick(0); 234 #ifdef Q_WS_MAC 235 /* Cocoa stuff should be async... 236 * Do not ask me why but otherwise 237 * it conflicts with native handlers. */ 238 QTimer::singleShot(0, this, SLOT(sltInit())); 239 #else /* !Q_WS_MAC */ 240 sltInit(); 241 #endif /* !Q_WS_MAC */ 232 242 233 243 /* Prepare main layout: */ … … 326 336 } 327 337 338 void UIVMDesktop::sltInit() 339 { 340 m_pHeaderBtn->animateClick(0); 341 } 342 328 343 void UIVMDesktop::retranslateUi() 329 344 { -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVMDesktop.h
r44318 r49706 63 63 void lockSnapshots(); 64 64 65 private slots: 66 67 /** Initialization handler. */ 68 void sltInit(); 69 65 70 private: 66 71
Note:
See TracChangeset
for help on using the changeset viewer.