VirtualBox

Changeset 93186 in vbox


Ignore:
Timestamp:
Jan 11, 2022 3:11:36 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9371. Dont use qt's standard icons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestTable.cpp

    r93185 r93186  
    3333#include "UIFileManagerHostTable.h"
    3434#include "UIFileManagerGuestTable.h"
     35#include "UIIconPool.h"
    3536#include "UIMessageCenter.h"
    3637#include "UIPathOperations.h"
     
    426427    if (m_pWarningLabel && m_pWarningIconLabel)
    427428    {
     429        const int iIconMetric = QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize);
    428430        QString strWarningText;
    429431        switch (m_enmState)
     
    431433            case State_InvalidMachineReference:
    432434                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)));
    434436                break;
    435437            case State_MachineNotRunning:
    436438                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)));
    438440                break;
    439441            case State_NoGuestAdditions:
    440442                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)));
    442444                break;
    443445            case State_SessionPossible:
    444446                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)));
    446448                break;
    447449            default:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette