KImageFilePreview Class Reference
from PyKDE4.kio import *
Inherits: KPreviewWidgetBase → QWidget → QObject
Detailed Description
Methods |
| __init__ (self, QWidget parent=0) |
| __init__ (self, KImageFilePreview a0) |
| clearPreview (self) |
KIO.PreviewJob | createJob (self, KUrl url, int width, int height) |
| gotPreview (self, KFileItem a0, QPixmap a1) |
| resizeEvent (self, QResizeEvent event) |
| showPreview (self, KUrl url) |
| showPreview (self) |
| showPreview (self, KUrl url, bool force) |
QSize | sizeHint (self) |
Method Documentation
__init__ |
( |
self, |
|
|
|
QWidget |
parent=0 |
|
) |
|
|
|
Creates a new image file preview.
- Parameters:
-
| parent | The parent widget.
|
showPreview |
( |
self, |
|
|
|
KUrl |
url |
|
) |
|
|
|
Shows a preview for the given url.
showPreview |
( |
self, |
|
|
|
KUrl |
url, |
|
|
bool |
force |
|
) |
|
|
|
Returns the size hint for this widget.