KIO
kimagefilepreview.cpp
206 imageLabel->setPixmap(QIcon::fromTheme(QStringLiteral("image-missing")).pixmap(KIconLoader::SizeLarge, QIcon::Disabled));
231 p.drawPixmap(QPoint(((float)pm.size().width() - m_pmCurrent.size().width()) / 2.0, ((float)pm.size().height() - m_pmCurrent.size().height()) / 2.0),
void append(const T &value)
static QStringList supportedMimeTypes()
Returns a list of all supported MIME types.
Definition: previewjob.cpp:1043
AlignHCenter
QSize sizeHint() const override
Returns the size hint for this widget.
Definition: kimagefilepreview.cpp:157
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
Definition: kimagefilepreview.h:33
Forward
void result(KJob *job)
QSize size() const const
static QStringList availablePlugins()
Returns a list of all available preview plugins.
Definition: previewjob.cpp:1021
Definition: kfileitem.h:657
QIcon fromTheme(const QString &name)
@ Scaled
The preview will be scaled to the size specified when constructing the PreviewJob.
Definition: previewjob.h:50
void fill(const QColor &color)
int width() const const
void frameChanged(int frame)
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
bool matches(const QUrl &url, QUrl::FormattingOptions options) const const
void setScaleType(ScaleType type)
Sets the scale type for the generated preview.
Definition: previewjob.cpp:310
void addWidget(QWidget *widget, int stretch, Qt::Alignment alignment)
bool isValid() const const
KGuiItem clear()
int height() const const
StripTrailingSlash
Running
Disabled
void failed(const KFileItem &item)
Emitted when a thumbnail for item could not be created, either because a ThumbCreator for its MIME ty...
KImageFilePreview(QWidget *parent=nullptr)
Creates a new image file preview.
Definition: kimagefilepreview.cpp:62
SH_Widget_Animate
void setOverlayIconAlpha(int alpha)
Sets the alpha-value for the MIME-type icon which overlays the preview.
Definition: previewjob.cpp:295
void setContentsMargins(int left, int top, int right, int bottom)
InCurve
void gotPreview(const KFileItem &item, const QPixmap &preview)
Emitted when a thumbnail picture for item has been successfully retrieved.
void setMinimumWidth(int minw)
Expanding
Definition: kfileitem.h:35
void showPreview(const QUrl &url) override
Shows a preview for the given url.
Definition: kimagefilepreview.cpp:102
SizeLarge
KIOWIDGETS_EXPORT 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=nullptr)
Creates a PreviewJob to generate or retrieve a preview image for the given URL.
Definition: previewjob.cpp:1055
transparent
void finished()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Feb 5 2023 04:00:51 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Feb 5 2023 04:00:51 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.