VirtualBox

Changeset 6867 in vbox


Ignore:
Timestamp:
Feb 8, 2008 2:50:05 PM (17 years ago)
Author:
vboxsync
Message:

Small fixes for Shared Folders list:
ignoring width of sub-headers (for column adjusting).

File:
1 edited

Legend:

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

    r6865 r6867  
    102102                    int aColumn, int aWidth, int aAlign)
    103103    {
    104                 /* Make parental cells splitted. */
     104        /* Make parental cells combined. */
    105105        if (!parent())
    106106        {
    107             /* Other columns except main should be semi-transparent. */
     107            /* Do not paint other columns except the first one. */
    108108            if (aColumn)
    109                 aPainter->setRasterOp (Qt::AndROP);
     109                return;
    110110            /* Main column's painter width should take all other's. */
    111             else
    112                 aWidth = listView()->viewport()->width();
     111            aWidth = listView()->viewport()->width();
    113112            QListViewItem::paintCell (aPainter, aColorGroup, aColumn,
    114113                                      aWidth, aAlign);
     
    121120    }
    122121
    123     int width (const QFontMetrics &aFontMetrics, const QListView *aItem, int aColumn) const
    124     {
    125         return aColumn ?
     122    int width (const QFontMetrics &aFontMetrics, const QListView *, int aColumn) const
     123    {
     124        return parent() ?
    126125               aFontMetrics.boundingRect (getText (aColumn)).width() +
    127                aFontMetrics.width ("...x") /* indent size */ :
    128                QListViewItem::width (aFontMetrics, aItem, aColumn);
     126               aFontMetrics.width ("...x") /* indent size */ : 0;
    129127    }
    130128
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