- Timestamp:
- Jan 11, 2022 3:11:36 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestTable.cpp
r93185 r93186 33 33 #include "UIFileManagerHostTable.h" 34 34 #include "UIFileManagerGuestTable.h" 35 #include "UIIconPool.h" 35 36 #include "UIMessageCenter.h" 36 37 #include "UIPathOperations.h" … … 426 427 if (m_pWarningLabel && m_pWarningIconLabel) 427 428 { 429 const int iIconMetric = QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize); 428 430 QString strWarningText; 429 431 switch (m_enmState) … … 431 433 case State_InvalidMachineReference: 432 434 strWarningText = UIFileManager::tr("Machine reference is invalid."); 433 m_pWarningIconLabel->setPixmap( QApplication::style()->standardIcon(QStyle::SP_MessageBoxCritical).pixmap(QSize(16, 16)));435 m_pWarningIconLabel->setPixmap(UIIconPool::iconSet(":/status_error_16px.png").pixmap(QSize(iIconMetric, iIconMetric))); 434 436 break; 435 437 case State_MachineNotRunning: 436 438 strWarningText = UIFileManager::tr("File manager cannot work since the selected guest is not currenly running."); 437 m_pWarningIconLabel->setPixmap( QApplication::style()->standardIcon(QStyle::SP_MessageBoxWarning).pixmap(QSize(16, 16)));439 m_pWarningIconLabel->setPixmap(UIIconPool::iconSet(":/status_error_16px.png").pixmap(QSize(iIconMetric, iIconMetric))); 438 440 break; 439 441 case State_NoGuestAdditions: 440 442 strWarningText = UIFileManager::tr("File manager cannot work since the selected guest does not have the guest additions."); 441 m_pWarningIconLabel->setPixmap( QApplication::style()->standardIcon(QStyle::SP_MessageBoxWarning).pixmap(QSize(16, 16)));443 m_pWarningIconLabel->setPixmap(UIIconPool::iconSet(":/status_error_16px.png").pixmap(QSize(iIconMetric, iIconMetric))); 442 444 break; 443 445 case State_SessionPossible: 444 446 strWarningText = UIFileManager::tr("Enter a valid user name and password to initiate the file manager."); 445 m_pWarningIconLabel->setPixmap( QApplication::style()->standardIcon(QStyle::SP_FileDialogInfoView).pixmap(QSize(16, 16)));447 m_pWarningIconLabel->setPixmap(UIIconPool::iconSet(":/session_info_16px.png").pixmap(QSize(iIconMetric, iIconMetric))); 446 448 break; 447 449 default:
Note:
See TracChangeset
for help on using the changeset viewer.