- Timestamp:
- Nov 15, 2017 9:21:29 AM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp
r69615 r69698 314 314 /* Configure close-dialog: */ 315 315 if (uisession() && uisession()->machineWindowIcon()) 316 pCloseDlg->setPixmap(uisession()->machineWindowIcon()->pixmap(QSize(32, 32))); 316 { 317 const int iIconMetric = QApplication::style()->pixelMetric(QStyle::PM_LargeIconSize); 318 pCloseDlg->setPixmap(uisession()->machineWindowIcon()->pixmap(QSize(iIconMetric, iIconMetric))); 319 } 317 320 318 321 /* Make sure close-dialog is valid: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIVMCloseDialog.cpp
r69500 r69698 30 30 31 31 /* GUI includes: */ 32 # include "UIIconPool.h" 32 33 # include "UIVMCloseDialog.h" 33 34 # include "UIExtraDataManager.h" … … 184 185 /* Configure icon: */ 185 186 m_pIcon->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); 186 m_pIcon->setPixmap(QPixmap(":/os_unknown.png")); 187 const int iIconMetric = QApplication::style()->pixelMetric(QStyle::PM_LargeIconSize); 188 const QIcon icon = UIIconPool::iconSet(":/os_unknown.png"); 189 m_pIcon->setPixmap(icon.pixmap(iIconMetric, iIconMetric)); 187 190 } 188 191 /* Configure layout: */ … … 200 203 QGridLayout *pChoiceLayout = new QGridLayout; 201 204 { 205 /* Prepare icon metric: */ 206 const int iIconMetric = QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize); 202 207 /* Prepare 'detach' icon: */ 203 208 m_pDetachIcon = new QLabel(this); … … 205 210 /* Configure icon: */ 206 211 m_pDetachIcon->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); 207 m_pDetachIcon->setPixmap(QPixmap(":/vm_create_shortcut_16px.png")); 212 const QIcon icon = UIIconPool::iconSet(":/vm_create_shortcut_16px.png"); 213 m_pDetachIcon->setPixmap(icon.pixmap(iIconMetric, iIconMetric)); 208 214 } 209 215 /* Prepare 'detach' radio-button: */ … … 219 225 /* Configure icon: */ 220 226 m_pSaveIcon->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); 221 m_pSaveIcon->setPixmap(QPixmap(":/vm_save_state_16px.png")); 227 const QIcon icon = UIIconPool::iconSet(":/vm_save_state_16px.png"); 228 m_pSaveIcon->setPixmap(icon.pixmap(iIconMetric, iIconMetric)); 222 229 } 223 230 /* Prepare 'save' radio-button: */ … … 233 240 /* Configure icon: */ 234 241 m_pShutdownIcon->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); 235 m_pShutdownIcon->setPixmap(QPixmap(":/vm_shutdown_16px.png")); 242 const QIcon icon = UIIconPool::iconSet(":/vm_shutdown_16px.png"); 243 m_pShutdownIcon->setPixmap(icon.pixmap(iIconMetric, iIconMetric)); 236 244 } 237 245 /* Prepare 'shutdown' radio-button: */ … … 247 255 /* Configure icon: */ 248 256 m_pPowerOffIcon->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); 249 m_pPowerOffIcon->setPixmap(QPixmap(":/vm_poweroff_16px.png")); 257 const QIcon icon = UIIconPool::iconSet(":/vm_poweroff_16px.png"); 258 m_pPowerOffIcon->setPixmap(icon.pixmap(iIconMetric, iIconMetric)); 250 259 } 251 260 /* Prepare 'shutdown' radio-button: */
Note:
See TracChangeset
for help on using the changeset viewer.