Changeset 67127 in vbox for trunk/src/VBox
- Timestamp:
- May 29, 2017 10:21:24 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/hostnetwork/UIHostNetworkDetailsDialog.cpp
r66914 r67127 252 252 #endif 253 253 254 /* Get the required icon metric: */ 255 const int iIconMetric = QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize); 256 254 257 /* Create automatic interface configuration layout: */ 255 258 QHBoxLayout *pLayoutAutomatic = new QHBoxLayout; … … 258 261 /* Configure layout: */ 259 262 pLayoutAutomatic->setContentsMargins(0, 0, 0, 0); 263 260 264 /* Create automatic interface configuration radio-button: */ 261 265 m_pButtonAutomatic = new QRadioButton; … … 275 279 m_pErrorPaneAutomatic->setAlignment(Qt::AlignLeft | Qt::AlignVCenter); 276 280 m_pErrorPaneAutomatic->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Minimum); 277 m_pErrorPaneAutomatic->setPixmap(UIIconPool::iconSet(":/status_error_16px.png").pixmap(QSize(16, 16))); 281 m_pErrorPaneAutomatic->setPixmap(UIIconPool::iconSet(":/status_error_16px.png") 282 .pixmap(QSize(iIconMetric, iIconMetric))); 278 283 /* Add into layout: */ 279 284 pLayoutAutomatic->addWidget(m_pErrorPaneAutomatic); … … 309 314 m_pErrorPaneManual->setAlignment(Qt::AlignLeft | Qt::AlignVCenter); 310 315 m_pErrorPaneManual->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Minimum); 311 m_pErrorPaneManual->setPixmap(UIIconPool::iconSet(":/status_error_16px.png").pixmap(QSize(16, 16))); 316 m_pErrorPaneManual->setPixmap(UIIconPool::iconSet(":/status_error_16px.png") 317 .pixmap(QSize(iIconMetric, iIconMetric))); 312 318 /* Add into layout: */ 313 319 pLayoutManual->addWidget(m_pErrorPaneManual); … … 352 358 /* Configure label: */ 353 359 m_pErrorPaneIPv4->setAlignment(Qt::AlignCenter); 354 m_pErrorPaneIPv4->setPixmap(UIIconPool::iconSet(":/status_error_16px.png").pixmap(QSize(16, 16))); 360 m_pErrorPaneIPv4->setPixmap(UIIconPool::iconSet(":/status_error_16px.png") 361 .pixmap(QSize(iIconMetric, iIconMetric))); 355 362 /* Add into layout: */ 356 363 pLayoutIPv4->addWidget(m_pErrorPaneIPv4); … … 392 399 /* Configure label: */ 393 400 m_pErrorPaneNMv4->setAlignment(Qt::AlignCenter); 394 m_pErrorPaneNMv4->setPixmap(UIIconPool::iconSet(":/status_error_16px.png").pixmap(QSize(16, 16))); 401 m_pErrorPaneNMv4->setPixmap(UIIconPool::iconSet(":/status_error_16px.png") 402 .pixmap(QSize(iIconMetric, iIconMetric))); 395 403 /* Add into layout: */ 396 404 pLayoutNMv4->addWidget(m_pErrorPaneNMv4); … … 432 440 /* Configure label: */ 433 441 m_pErrorPaneIPv6->setAlignment(Qt::AlignCenter); 434 m_pErrorPaneIPv6->setPixmap(UIIconPool::iconSet(":/status_error_16px.png").pixmap(QSize(16, 16))); 442 m_pErrorPaneIPv6->setPixmap(UIIconPool::iconSet(":/status_error_16px.png") 443 .pixmap(QSize(iIconMetric, iIconMetric))); 435 444 /* Add into layout: */ 436 445 pLayoutIPv6->addWidget(m_pErrorPaneIPv6); … … 472 481 /* Configure label: */ 473 482 m_pErrorPaneNMv6->setAlignment(Qt::AlignCenter); 474 m_pErrorPaneNMv6->setPixmap(UIIconPool::iconSet(":/status_error_16px.png").pixmap(QSize(16, 16))); 483 m_pErrorPaneNMv6->setPixmap(UIIconPool::iconSet(":/status_error_16px.png") 484 .pixmap(QSize(iIconMetric, iIconMetric))); 475 485 /* Add into layout: */ 476 486 pLayoutNMv6->addWidget(m_pErrorPaneNMv6); … … 520 530 #endif 521 531 532 /* Get the required icon metric: */ 533 const int iIconMetric = QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize); 534 522 535 /* Create DHCP server status check-box: */ 523 536 m_pCheckBoxDHCP = new QCheckBox; … … 566 579 /* Configure label: */ 567 580 m_pErrorPaneDHCPAddress->setAlignment(Qt::AlignCenter); 568 m_pErrorPaneDHCPAddress->setPixmap(UIIconPool::iconSet(":/status_error_16px.png").pixmap(QSize(16, 16))); 581 m_pErrorPaneDHCPAddress->setPixmap(UIIconPool::iconSet(":/status_error_16px.png") 582 .pixmap(QSize(iIconMetric, iIconMetric))); 569 583 /* Add into layout: */ 570 584 pLayoutDHCPAddress->addWidget(m_pErrorPaneDHCPAddress); … … 606 620 /* Configure label: */ 607 621 m_pErrorPaneDHCPMask->setAlignment(Qt::AlignCenter); 608 m_pErrorPaneDHCPMask->setPixmap(UIIconPool::iconSet(":/status_error_16px.png").pixmap(QSize(16, 16))); 622 m_pErrorPaneDHCPMask->setPixmap(UIIconPool::iconSet(":/status_error_16px.png") 623 .pixmap(QSize(iIconMetric, iIconMetric))); 609 624 /* Add into layout: */ 610 625 pLayoutDHCPMask->addWidget(m_pErrorPaneDHCPMask); … … 646 661 /* Configure label: */ 647 662 m_pErrorPaneDHCPLowerAddress->setAlignment(Qt::AlignCenter); 648 m_pErrorPaneDHCPLowerAddress->setPixmap(UIIconPool::iconSet(":/status_error_16px.png").pixmap(QSize(16, 16))); 663 m_pErrorPaneDHCPLowerAddress->setPixmap(UIIconPool::iconSet(":/status_error_16px.png") 664 .pixmap(QSize(iIconMetric, iIconMetric))); 649 665 /* Add into layout: */ 650 666 pLayoutDHCPLowerAddress->addWidget(m_pErrorPaneDHCPLowerAddress); … … 686 702 /* Configure label: */ 687 703 m_pErrorPaneDHCPUpperAddress->setAlignment(Qt::AlignCenter); 688 m_pErrorPaneDHCPUpperAddress->setPixmap(UIIconPool::iconSet(":/status_error_16px.png").pixmap(QSize(16, 16))); 704 m_pErrorPaneDHCPUpperAddress->setPixmap(UIIconPool::iconSet(":/status_error_16px.png") 705 .pixmap(QSize(iIconMetric, iIconMetric))); 689 706 /* Add into layout: */ 690 707 pLayoutDHCPUpperAddress->addWidget(m_pErrorPaneDHCPUpperAddress);
Note:
See TracChangeset
for help on using the changeset viewer.