|
|
This class implements the "delayed-mimetype-determination" feature, for konqueror's directory views (and KFileDialog's :)
It determines the mimetypes of the icons in the background, but giving preferrence to the visible icons.
It is implemented as a template, so that it can work with both QPtrListViewItem and QIconViewItem, without requiring hacks such as void * or QPtrDict lookups.
Here's what the parent must implement : - void mimeTypeDeterminationFinished(); - QScrollView * scrollWidget(); - void determineIcon( IconItem * item ), which should call KFileItem::determineMimeType on the fileItem, and update the icon, etc.
KMimeTypeResolver ( Parent * parent )
| KMimeTypeResolver |
~KMimeTypeResolver ()
| ~KMimeTypeResolver |
[virtual]
void start ( uint delayNonVisibleIcons = 10 )
| start |
Start the mimetype-determination. Call this when the listing is completed.
Parameters:
delayNonVisibleIcons | the delay to use between icons not on screen. Usually 10, but should be set to 0 when the image preview feature is activated, because image preview can only start once we know the mimetypes |
QPtrList | m_lstPendingMimeIconItems |
void slotViewportAdjusted ()
| slotViewportAdjusted |
[virtual]
"Connected" to the viewportAdjusted signal of the scrollview
Reimplemented from KMimeTypeResolverBase.
void slotProcessMimeIcons ()
| slotProcessMimeIcons |
[virtual]
"Connected" to the timer
Reimplemented from KMimeTypeResolverBase.
Generated by: dfaure on faure on Tue Apr 16 08:49:48 2002, using kdoc 2.0a53. |