KIO
kimagefilepreview.cpp
203 imageLabel->setPixmap(QIcon::fromTheme(QStringLiteral("image-missing")).pixmap(KIconLoader::SizeLarge, QIcon::Disabled));
228 p.drawPixmap(QPoint(((float)pm.size().width() - m_pmCurrent.size().width()) / 2.0, ((float)pm.size().height() - m_pmCurrent.size().height()) / 2.0),
234 QPoint(((float)pm.size().width() - m_pmTransition.size().width()) / 2.0, ((float)pm.size().height() - m_pmTransition.size().height()) / 2.0),
List of KFileItems, which adds a few helper methods to QList<KFileItem>.
Definition kfileitem.h:632
KIO Job to get a thumbnail picture.
void setScaleType(ScaleType type)
Sets the scale type for the generated preview.
Definition previewjob.cpp:304
static QStringList supportedMimeTypes()
Returns a list of all supported MIME types.
Definition previewjob.cpp:1044
static QStringList availablePlugins()
Returns a list of all available preview plugins.
Definition previewjob.cpp:1022
@ Scaled
The preview will be scaled to the size specified when constructing the PreviewJob.
Definition previewjob.h:49
void failed(const KFileItem &item)
Emitted when a thumbnail for item could not be created, either because a ThumbCreator for its MIME ty...
void gotPreview(const KFileItem &item, const QPixmap &preview)
Emitted when a thumbnail picture for item has been successfully retrieved.
SizeLarge
QSize sizeHint() const override
Returns the size hint for this widget.
Definition kimagefilepreview.cpp:157
KImageFilePreview(QWidget *parent=nullptr)
Creates a new image file preview.
Definition kimagefilepreview.cpp:62
void showPreview(const QUrl &url) override
Shows a preview for the given url.
Definition kimagefilepreview.cpp:102
void result(KJob *job)
Abstract baseclass for all preview widgets which shall be used via KFileDialog::setPreviewWidget(cons...
Definition kpreviewwidgetbase.h:36
KIOGUI_EXPORT PreviewJob * filePreview(const KFileItemList &items, const QSize &size, const QStringList *enabledPlugins=nullptr)
Creates a PreviewJob to generate a preview image for the given items.
Definition previewjob.cpp:1054
void addWidget(QWidget *widget, int stretch, Qt::Alignment alignment)
Disabled
QIcon fromTheme(const QString &name)
void clear()
void setPixmap(const QPixmap &)
void setContentsMargins(const QMargins &margins)
void append(QList< T > &&value)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
bool disconnect(const QMetaObject::Connection &connection)
void fill(const QColor &color)
bool isNull() const const
QSize size() const const
int height() const const
int width() const const
Expanding
SH_Widget_Animate
virtual int styleHint(StyleHint hint, const QStyleOption *option, const QWidget *widget, QStyleHintReturn *returnData) const const=0
AlignHCenter
transparent
Forward
Running
void finished()
void frameChanged(int frame)
StripTrailingSlash
bool isValid() const const
bool matches(const QUrl &url, FormattingOptions options) const const
void setMinimumWidth(int minw)
QStyle * style() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:28 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:28 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.