kio
KImageFilePreview Class Reference
Image preview widget for the file dialog. More...
#include <kimagefilepreview.h>
Public Slots | |
virtual void | clearPreview () |
virtual void | showPreview (const KURL &url) |
Public Member Functions | |
KImageFilePreview (QWidget *parent) | |
virtual QSize | sizeHint () const |
~KImageFilePreview () | |
Protected Slots | |
virtual void | gotPreview (const KFileItem *, const QPixmap &) |
void | showPreview (const KURL &url, bool force) |
void | showPreview () |
void | toggleAuto (bool) |
Protected Member Functions | |
virtual KIO::PreviewJob * | createJob (const KURL &url, int w, int h) |
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.
Constructor & Destructor Documentation
KImageFilePreview::KImageFilePreview | ( | QWidget * | parent | ) |
Definition at line 34 of file kimagefilepreview.cpp.
KImageFilePreview::~KImageFilePreview | ( | ) |
Definition at line 68 of file kimagefilepreview.cpp.
Member Function Documentation
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 173 of file kimagefilepreview.cpp.
KIO::PreviewJob * KImageFilePreview::createJob | ( | const KURL & | url, | |
int | w, | |||
int | h | |||
) | [protected, virtual] |
Definition at line 145 of file kimagefilepreview.cpp.
void KImageFilePreview::gotPreview | ( | const KFileItem * | item, | |
const QPixmap & | pm | |||
) | [protected, virtual, slot] |
Definition at line 152 of file kimagefilepreview.cpp.
void KImageFilePreview::resizeEvent | ( | QResizeEvent * | e | ) | [protected, virtual] |
void KImageFilePreview::showPreview | ( | const KURL & | url, | |
bool | force | |||
) | [protected, slot] |
Definition at line 91 of file kimagefilepreview.cpp.
void KImageFilePreview::showPreview | ( | ) | [protected, slot] |
Definition at line 78 of file kimagefilepreview.cpp.
void KImageFilePreview::showPreview | ( | const KURL & | url | ) | [virtual, slot] |
This slot is called every time 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 86 of file kimagefilepreview.cpp.
QSize KImageFilePreview::sizeHint | ( | ) | const [virtual] |
void KImageFilePreview::toggleAuto | ( | bool | a | ) | [protected, slot] |
Definition at line 124 of file kimagefilepreview.cpp.
void KImageFilePreview::virtual_hook | ( | int | id, | |
void * | data | |||
) | [protected, virtual] |
The documentation for this class was generated from the following files: