kio Library API Documentation

KImageFilePreview Class Reference

Image preview widget for the file dialog. More...

#include <kimagefilepreview.h>

Inheritance diagram for KImageFilePreview:

KPreviewWidgetBase QWidget List of all members.

Public Slots

virtual void showPreview (const KURL &url)
 This slot is called everytime the user selects another file in the file dialog.

virtual void clearPreview ()
 Reimplement this to clear the preview.


Public Methods

virtual QSize sizeHint () const

Protected Methods

virtual void resizeEvent (QResizeEvent *e)
virtual void virtual_hook (int id, void *data)

Detailed Description

Image preview widget for the file dialog.

Definition at line 31 of file kimagefilepreview.h.


Member Function Documentation

void KImageFilePreview::showPreview const KURL   url [virtual, slot]
 

This slot is called everytime the user selects another file in the file dialog.

Implement the stuff necessary to reflect the change here.

Parameters:
url  The URL of the currently selected file.

Implements KPreviewWidgetBase.

Definition at line 76 of file kimagefilepreview.cpp.

void KImageFilePreview::clearPreview   [virtual, slot]
 

Reimplement this to clear the preview.

This is called when e.g. the selection is cleared or when multiple selections exist, or the directory is changed.

Implements KPreviewWidgetBase.

Definition at line 158 of file kimagefilepreview.cpp.

References QLabel::clear(), and KIO::Job::kill().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.0.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Oct 8 12:21:36 2003 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2001