Changeset 6865 in vbox
- Timestamp:
- Feb 8, 2008 1:13:33 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 28004
- Location:
- trunk/src/VBox/Frontends/VirtualBox/ui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxSharedFoldersSettings.ui
r6811 r6865 232 232 <include location="global" impldecl="in implementation">qregexp.h</include> 233 233 <include location="global" impldecl="in implementation">qtimer.h</include> 234 <include location="global" impldecl="in implementation">qpainter.h</include> 234 235 </includes> 235 236 <variables> … … 249 250 <slot>processDoubleClick( QListViewItem* )</slot> 250 251 <slot>adjustList()</slot> 252 <slot>updateList()</slot> 251 253 </slots> 252 254 <functions> -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxSharedFoldersSettings.ui.h
r6847 r6865 102 102 int aColumn, int aWidth, int aAlign) 103 103 { 104 processColumn (aColumn, aWidth); 105 QListViewItem::paintCell (aPainter, aColorGroup, aColumn, aWidth, aAlign); 104 /* Make parental cells splitted. */ 105 if (!parent()) 106 { 107 /* Other columns except main should be semi-transparent. */ 108 if (aColumn) 109 aPainter->setRasterOp (Qt::AndROP); 110 /* Main column's painter width should take all other's. */ 111 else 112 aWidth = listView()->viewport()->width(); 113 QListViewItem::paintCell (aPainter, aColorGroup, aColumn, 114 aWidth, aAlign); 115 } 116 else 117 { 118 processColumn (aColumn, aWidth); 119 QListViewItem::paintCell (aPainter, aColorGroup, aColumn, aWidth, aAlign); 120 } 106 121 } 107 122 … … 373 388 this, SLOT (processCurrentChanged (QListViewItem *))); 374 389 390 /* Make after-paining list update to ensure all columns repainted correctly. */ 391 connect (listView->header(), SIGNAL (sizeChange (int, int, int)), 392 this, SLOT (updateList())); 393 375 394 mIsListViewChanged = false; 376 395 … … 389 408 } 390 409 410 411 void VBoxSharedFoldersSettings::updateList() 412 { 413 /* Updating list after all pending cell-repaint enevts. */ 414 QTimer::singleShot (0, listView, SLOT (updateContents())); 415 } 391 416 392 417 void VBoxSharedFoldersSettings::adjustList() … … 405 430 406 431 /* We are adjusting columns 0 and 2 and resizing column 1 to feat 407 * visible listView' width according two adjusted columns. Due to 432 * visible listView' width according two adjusted columns. Due to 408 433 * adjusting column 2 influent column 0 restoring all widths. */ 409 434 listView->setColumnWidth (0, w0); … … 411 436 listView->setColumnWidth (2, w2); 412 437 } 413 438 414 439 bool VBoxSharedFoldersSettings::eventFilter (QObject *aObject, QEvent *aEvent) 415 440 {
Note:
See TracChangeset
for help on using the changeset viewer.