Changeset 75672 in vbox
- Timestamp:
- Nov 22, 2018 3:15:29 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 126866
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIVMCloseDialog.cpp
r72887 r75672 104 104 bool UIVMCloseDialog::event(QEvent *pEvent) 105 105 { 106 /* Handle know event types: */ 106 /* Pre-process in base-class: */ 107 const bool fResult = QIWithRetranslateUI<QIDialog>::event(pEvent); 108 109 /* Post-process know event types: */ 107 110 switch (pEvent->type()) 108 111 { 109 case QEvent::Show:110 112 case QEvent::ScreenChangeInternal: 111 113 { 112 114 /* Update pixmaps: */ 113 115 updatePixmaps(); 114 115 // NOTE:116 // This thing works after QEvent::Show but isn't117 // working after QEvent::ScreenChangeInternal,118 // because it is too early, layout isn't calculated.119 // We want to "force" it to work, just no idea how.120 // Resize to minimum size-hint:121 resize(minimumSizeHint());122 123 116 break; 124 117 } … … 127 120 } 128 121 122 /* Return pre-processed result: */ 123 return fResult; 124 } 125 126 void UIVMCloseDialog::showEvent(QShowEvent *pEvent) 127 { 128 /* Update pixmaps: */ 129 updatePixmaps(); 130 129 131 /* Call to base-class: */ 130 return QIWithRetranslateUI<QIDialog>::event(pEvent);132 QIWithRetranslateUI<QIDialog>::showEvent(pEvent); 131 133 } 132 134 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIVMCloseDialog.h
r72887 r75672 63 63 /** Handles any Qt @a pEvent. */ 64 64 virtual bool event(QEvent *pEvent) /* override */; 65 66 /** Handles show @a pEvent. */ 67 virtual void showEvent(QShowEvent *pEvent) /* override */; 65 68 66 69 /** Handles translation event. */
Note:
See TracChangeset
for help on using the changeset viewer.