VirtualBox

Ignore:
Timestamp:
Feb 7, 2008 1:05:24 PM (17 years ago)
Author:
vboxsync
Message:

Fixed VBoxRichListItem::width() for the Shared Folders list usage (incorrect 0 column width calculation).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxSharedFoldersSettings.ui.h

    r6844 r6847  
    106106    }
    107107
    108     int width (const QFontMetrics &aFontMetrics, const QListView *, int aColumn) const
    109     {
    110         return aFontMetrics.boundingRect (getText (aColumn)).width() +
    111                aFontMetrics.width ("...x") /* indent size */ ;
     108    int width (const QFontMetrics &aFontMetrics, const QListView *aItem, int aColumn) const
     109    {
     110        return aColumn ?
     111               aFontMetrics.boundingRect (getText (aColumn)).width() +
     112               aFontMetrics.width ("...x") /* indent size */ :
     113               QListViewItem::width (aFontMetrics, aItem, aColumn);
    112114    }
    113115
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