• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KIO

KImageFilePreview Class Reference

#include <kimagefilepreview.h>

Inheritance diagram for KImageFilePreview:

Inheritance graph
[legend]

List of all members.


Detailed Description

Image preview widget for the file dialog.

Definition at line 26 of file kimagefilepreview.h.


Public Slots

virtual void showPreview (const KUrl &url)
virtual void clearPreview ()

Public Member Functions

 KImageFilePreview (QWidget *parent=0)
 ~KImageFilePreview ()
virtual QSize sizeHint () const

Protected Slots

void showPreview ()
void showPreview (const KUrl &url, bool force)
virtual void gotPreview (const KFileItem &, const QPixmap &)

Protected Member Functions

virtual void resizeEvent (QResizeEvent *event)
virtual KIO::PreviewJob * createJob (const KUrl &url, int width, int height)

Constructor & Destructor Documentation

KImageFilePreview::KImageFilePreview ( QWidget *  parent = 0  )  [explicit]

Creates a new image file preview.

Parameters:
parent The parent widget.

Definition at line 51 of file kimagefilepreview.cpp.

KImageFilePreview::~KImageFilePreview (  ) 

Destroys the image file preview.

Definition at line 67 of file kimagefilepreview.cpp.


Member Function Documentation

QSize KImageFilePreview::sizeHint ( void   )  const [virtual]

Returns the size hint for this widget.

Definition at line 123 of file kimagefilepreview.cpp.

void KImageFilePreview::showPreview ( const KUrl &  url  )  [virtual, slot]

Shows a preview for the given url.

Implements KPreviewWidgetBase.

Definition at line 84 of file kimagefilepreview.cpp.

void KImageFilePreview::clearPreview (  )  [virtual, slot]

Clears the preview.

Implements KPreviewWidgetBase.

Definition at line 157 of file kimagefilepreview.cpp.

void KImageFilePreview::showPreview (  )  [protected, slot]

Definition at line 76 of file kimagefilepreview.cpp.

void KImageFilePreview::showPreview ( const KUrl &  url,
bool  force 
) [protected, slot]

Definition at line 89 of file kimagefilepreview.cpp.

void KImageFilePreview::gotPreview ( const KFileItem &  item,
const QPixmap &  pm 
) [protected, virtual, slot]

Definition at line 135 of file kimagefilepreview.cpp.

void KImageFilePreview::resizeEvent ( QResizeEvent *  event  )  [protected, virtual]

Reimplemented from QWidget.

Definition at line 118 of file kimagefilepreview.cpp.

KIO::PreviewJob * KImageFilePreview::createJob ( const KUrl &  url,
int  width,
int  height 
) [protected, virtual]

Definition at line 128 of file kimagefilepreview.cpp.


The documentation for this class was generated from the following files:
  • kimagefilepreview.h
  • kimagefilepreview.cpp

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   WTF
  • KJSEmbed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  •   core
  • Phonon
  •   Backend
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal