VirtualBox

Changeset 42581 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 3, 2012 2:18:27 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: 6234: Support for VM groups: Trying to resolve issue on some
platforms when item text being truncated during painting.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemGroup.cpp

    r42563 r42581  
    311311                return QSizeF(0, 0);
    312312            QFontMetrics fm(data(GroupItemData_NameFont).value<QFont>());
    313             return QSize(fm.width(data(GroupItemData_Name).toString()), fm.height());
     313            return QSize(fm.width(data(GroupItemData_Name).toString()) + 1, fm.height());
    314314        }
    315315        case GroupItemData_NameEditorSize:
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemMachine.cpp

    r42564 r42581  
    183183        {
    184184            QFontMetrics fm(data(MachineItemData_NameFont).value<QFont>());
    185             return QSize(fm.width(data(MachineItemData_Name).toString()), fm.height());
     185            return QSize(fm.width(data(MachineItemData_Name).toString()) + 1, fm.height());
    186186        }
    187187        case MachineItemData_MinimumSnapshotNameSize:
     
    196196        {
    197197            QFontMetrics fm(data(MachineItemData_SnapshotNameFont).value<QFont>());
    198             return QSize(fm.width(QString("(%1)").arg(data(MachineItemData_SnapshotName).toString())), fm.height());
     198            return QSize(fm.width(QString("(%1)").arg(data(MachineItemData_SnapshotName).toString())) + 1, fm.height());
    199199        }
    200200        case MachineItemData_FirstRowMaximumWidth:
     
    219219        {
    220220            QFontMetrics fm(data(MachineItemData_StateTextFont).value<QFont>());
    221             return QSize(fm.width(data(MachineItemData_StateText).toString()), fm.height());
     221            return QSize(fm.width(data(MachineItemData_StateText).toString()) + 1, fm.height());
    222222        }
    223223        case MachineItemData_ToolBarSize:
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