Changeset 72709 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jun 27, 2018 6:29:02 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemGroup.cpp
r72708 r72709 30 30 31 31 /* GUI includes: */ 32 # include "UIGChooser.h"33 32 # include "UIGChooserItemGroup.h" 34 33 # include "UIGChooserItemMachine.h" … … 114 113 connect(this, SIGNAL(sigToggleStarted()), model(), SIGNAL(sigToggleStarted())); 115 114 connect(this, SIGNAL(sigToggleFinished()), model(), SIGNAL(sigToggleFinished()), Qt::QueuedConnection); 116 connect( model()->chooser()->selector(), &UISelectorWindow::sigWindowRemapped,115 connect(gpSelectorWindow, &UISelectorWindow::sigWindowRemapped, 117 116 this, &UIGChooserItemGroup::sltHandleWindowRemapped); 118 117 … … 150 149 connect(this, SIGNAL(sigToggleStarted()), model(), SIGNAL(sigToggleStarted())); 151 150 connect(this, SIGNAL(sigToggleFinished()), model(), SIGNAL(sigToggleFinished())); 152 connect( model()->chooser()->selector(), &UISelectorWindow::sigWindowRemapped,151 connect(gpSelectorWindow, &UISelectorWindow::sigWindowRemapped, 153 152 this, &UIGChooserItemGroup::sltHandleWindowRemapped); 154 153 … … 556 555 { 557 556 const int iIconMetric = QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize); 558 m_groupsPixmap = UIIconPool::iconSet(":/group_abstract_16px.png").pixmap( model()->chooser()->window()->windowHandle(),557 m_groupsPixmap = UIIconPool::iconSet(":/group_abstract_16px.png").pixmap(gpSelectorWindow->windowHandle(), 559 558 QSize(iIconMetric, iIconMetric)); 560 m_machinesPixmap = UIIconPool::iconSet(":/machine_abstract_16px.png").pixmap( model()->chooser()->window()->windowHandle(),559 m_machinesPixmap = UIIconPool::iconSet(":/machine_abstract_16px.png").pixmap(gpSelectorWindow->windowHandle(), 561 560 QSize(iIconMetric, iIconMetric)); 562 561 m_pixmapSizeGroups = m_groupsPixmap.size() / m_groupsPixmap.devicePixelRatio(); -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemMachine.cpp
r72708 r72709 27 27 /* GUI includes: */ 28 28 # include "VBoxGlobal.h" 29 # include "UIGChooser.h"30 29 # include "UIGChooserItemGroup.h" 31 30 # include "UIGChooserItemMachine.h" … … 63 62 64 63 /* Configure connections: */ 65 connect( model()->chooser()->selector(), &UISelectorWindow::sigWindowRemapped,64 connect(gpSelectorWindow, &UISelectorWindow::sigWindowRemapped, 66 65 this, &UIGChooserItemMachine::sltHandleWindowRemapped); 67 66 … … 90 89 91 90 /* Configure connections: */ 92 connect( model()->chooser()->selector(), &UISelectorWindow::sigWindowRemapped,91 connect(gpSelectorWindow, &UISelectorWindow::sigWindowRemapped, 93 92 this, &UIGChooserItemMachine::sltHandleWindowRemapped); 94 93 … … 271 270 AssertReturnVoid(!stateIcon.isNull()); 272 271 const QSize statePixmapSize = QSize(iIconMetric, iIconMetric); 273 const QPixmap statePixmap = stateIcon.pixmap( model()->chooser()->window()->windowHandle(), statePixmapSize);272 const QPixmap statePixmap = stateIcon.pixmap(gpSelectorWindow->windowHandle(), statePixmapSize); 274 273 /* Update linked values: */ 275 274 if (m_statePixmapSize != statePixmapSize)
Note:
See TracChangeset
for help on using the changeset viewer.