VirtualBox

Changeset 75685 in vbox


Ignore:
Timestamp:
Nov 23, 2018 12:27:13 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6699. Make the warning label font size a bit more dynamic in file table

File:
1 edited

Legend:

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

    r75673 r75685  
    787787    {
    788788        m_pMainLayout->addWidget(m_pWarningLabel, 2, 0, 5, 5);
    789         m_pWarningLabel->setStyleSheet("font: 24pt;");
     789        QFont labelFont = m_pWarningLabel->font();
     790        float fSizeMultiplier = 2.5;
     791        if (labelFont.pointSize() != -1)
     792            labelFont.setPointSize(fSizeMultiplier * labelFont.pointSize());
     793        else
     794            labelFont.setPixelSize(fSizeMultiplier * labelFont.pixelSize());
     795        labelFont.setBold(true);
     796        m_pWarningLabel->setFont(labelFont);
    790797        m_pWarningLabel->setAlignment(Qt::AlignCenter | Qt::AlignVCenter);
     798        m_pWarningLabel->setWordWrap(true);
    791799    }
    792800    m_pWarningLabel->setVisible(!isEnabled());
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