Changeset 6867 in vbox
- Timestamp:
- Feb 8, 2008 2:50:05 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxSharedFoldersSettings.ui.h
r6865 r6867 102 102 int aColumn, int aWidth, int aAlign) 103 103 { 104 /* Make parental cells splitted. */104 /* Make parental cells combined. */ 105 105 if (!parent()) 106 106 { 107 /* Other columns except main should be semi-transparent. */107 /* Do not paint other columns except the first one. */ 108 108 if (aColumn) 109 aPainter->setRasterOp (Qt::AndROP);109 return; 110 110 /* Main column's painter width should take all other's. */ 111 else 112 aWidth = listView()->viewport()->width(); 111 aWidth = listView()->viewport()->width(); 113 112 QListViewItem::paintCell (aPainter, aColorGroup, aColumn, 114 113 aWidth, aAlign); … … 121 120 } 122 121 123 int width (const QFontMetrics &aFontMetrics, const QListView * aItem, int aColumn) const124 { 125 return aColumn?122 int width (const QFontMetrics &aFontMetrics, const QListView *, int aColumn) const 123 { 124 return parent() ? 126 125 aFontMetrics.boundingRect (getText (aColumn)).width() + 127 aFontMetrics.width ("...x") /* indent size */ : 128 QListViewItem::width (aFontMetrics, aItem, aColumn); 126 aFontMetrics.width ("...x") /* indent size */ : 0; 129 127 } 130 128
Note:
See TracChangeset
for help on using the changeset viewer.