- Timestamp:
- Jun 27, 2018 5:24:41 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 123236
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r72705 r72707 1308 1308 switch (pEvent->type()) 1309 1309 { 1310 /* Handle every ScreenChangeInternal event to notify listeners: */ 1311 case QEvent::ScreenChangeInternal: 1312 { 1313 emit sigWindowRemapped(); 1314 break; 1315 } 1310 1316 /* Handle every Resize and Move we keep track of the geometry. */ 1311 1317 case QEvent::Resize: -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.h
r72363 r72707 50 50 { 51 51 Q_OBJECT; 52 53 signals: 54 55 /** Notifies listeners about this window remapped onto another screen. */ 56 void sigWindowRemapped(); 52 57 53 58 public: -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemMachine.cpp
r72704 r72707 36 36 # include "UIActionPoolSelector.h" 37 37 # include "UIImageTools.h" 38 # include "UISelectorWindow.h" 38 39 39 40 /* COM includes: */ … … 61 62 setZValue(parentItem()->zValue() + 1); 62 63 64 /* Configure connections: */ 65 connect(model()->chooser()->selector(), &UISelectorWindow::sigWindowRemapped, 66 this, &UIGChooserItemMachine::sltHandleWindowRemapped); 67 63 68 /* Init: */ 64 69 updatePixmaps(); … … 83 88 parentItem()->addItem(this, iPosition); 84 89 setZValue(parentItem()->zValue() + 1); 90 91 /* Configure connections: */ 92 connect(model()->chooser()->selector(), &UISelectorWindow::sigWindowRemapped, 93 this, &UIGChooserItemMachine::sltHandleWindowRemapped); 85 94 86 95 /* Init: */ … … 192 201 } 193 202 203 void UIGChooserItemMachine::sltHandleWindowRemapped() 204 { 205 /* Recache and update pixmaps: */ 206 recachePixmap(); 207 updatePixmaps(); 208 } 209 194 210 QVariant UIGChooserItemMachine::data(int iKey) const 195 211 { -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemMachine.h
r72704 r72707 68 68 QList<UIGChooserItemMachine*> &ol, 69 69 int iEnumerationFlags = 0); 70 71 public slots: 72 73 /** Handles top-level window remaps. */ 74 void sltHandleWindowRemapped(); 70 75 71 76 private:
Note:
See TracChangeset
for help on using the changeset viewer.