KIO
kimagefilepreview.cpp
Go to the documentation of this file.
void setOpacity(qreal opacity)
static QStringList availablePlugins()
Returns a list of all available preview plugins.
Definition: previewjob.cpp:735
void setSupportedMimeTypes(const QStringList &mimeTypes)
Definition: kpreviewwidgetbase.cpp:27
void setScaleType(ScaleType type)
Sets the scale type for the generated preview.
Definition: previewjob.cpp:238
void setMinimumWidth(int minw)
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
virtual KIO::PreviewJob * createJob(const KUrl &url, int width, int height)
Definition: kimagefilepreview.cpp:165
Definition: kfileitem.h:48
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
void append(const T &value)
KImageFilePreview(QWidget *parent=0)
Creates a new image file preview.
Definition: kimagefilepreview.cpp:71
virtual void resizeEvent(QResizeEvent *event)
Definition: kimagefilepreview.cpp:153
List of KFileItems, which adds a few helper methods to QList.
Definition: kfileitem.h:674
KAction * clear(const QObject *recvr, const char *slot, QObject *parent)
virtual void gotPreview(const KFileItem &, const QPixmap &)
Definition: kimagefilepreview.cpp:181
virtual QSize sizeHint() const
Returns the size hint for this widget.
Definition: kimagefilepreview.cpp:160
void setMargin(int margin)
bool isValid() const
void setOverlayIconAlpha(int alpha)
Sets the alpha-value for the MIME-type icon which overlays the preview.
Definition: previewjob.cpp:226
Abstract baseclass for all preview widgets which shall be used via KFileDialog::setPreviewWidget(cons...
Definition: kpreviewwidgetbase.h:43
QPixmap SmallIcon(const QString &name, int force_size, int state, const QStringList &overlays)
PreviewJob * filePreview(const KFileItemList &items, int width, int height=0, int iconSize=0, int iconAlpha=70, bool scale=true, bool save=true, const QStringList *enabledPlugins=0)
Creates a PreviewJob to generate or retrieve a preview image for the given URL.
Definition: previewjob.cpp:755
static GraphicEffects graphicEffectsLevel()
static QStringList supportedMimeTypes()
Returns a list of all supported MIME types.
Definition: previewjob.cpp:745
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
bool equals(const KUrl &u, const EqualsOptions &options=0) const
The preview will be scaled to the size specified when constructing the PreviewJob.
Definition: previewjob.h:56
A KFileItem is a generic class to handle a file, local or remote.
Definition: kfileitem.h:45
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.