Changeset 42581 in vbox for trunk/src/VBox
- Timestamp:
- Aug 3, 2012 2:18:27 PM (12 years ago)
- 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 311 311 return QSizeF(0, 0); 312 312 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()); 314 314 } 315 315 case GroupItemData_NameEditorSize: -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemMachine.cpp
r42564 r42581 183 183 { 184 184 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()); 186 186 } 187 187 case MachineItemData_MinimumSnapshotNameSize: … … 196 196 { 197 197 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()); 199 199 } 200 200 case MachineItemData_FirstRowMaximumWidth: … … 219 219 { 220 220 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()); 222 222 } 223 223 case MachineItemData_ToolBarSize:
Note:
See TracChangeset
for help on using the changeset viewer.