parley
imagewidget.cpp
Go to the documentation of this file.
34 // The functions centerPixmaps() and transition() are copied from kdelibs/plasma/paintutils.cpp, revision 1133527
38 // Don't just modify the code here, if there are issues they should probably also be fixed in libplasma.
186 : QWidget(parent), m_fading(true), m_scaling(true), m_onlyDownscaling(true), m_keepAspectRatio(Qt::KeepAspectRatio), m_alignment(Qt::AlignCenter)
290 bool scaleUp = m_originalPixmap.width() <= size().width() && m_originalPixmap.height() <= size().height();
318 m_scaledPixmap = m_scaledBackupPixmap.scaled(size(), m_keepAspectRatio, Qt::FastTransformation);
void setInterval(int msec)
void detach()
QSize size() const
int width() const
int width() const
bool end()
void fillRect(const QRectF &rectangle, const QBrush &brush)
void setCompositionMode(CompositionMode mode)
void fill(const QColor &color)
bool isEmpty() const
virtual void paintEvent(QPaintEvent *e)
Definition: imagewidget.cpp:245
Display * display()
int y() const
QPixmap fromImage(const QImage &image, QFlags< Qt::ImageConversionFlag > flags)
int x() const
int y() const
QPixmap transition(const QPixmap &from, const QPixmap &to, qreal amount)
Definition: imagewidget.cpp:73
void setAlignment(Qt::Alignment alignment)
Definition: imagewidget.cpp:240
virtual QPaintEngine * paintEngine() const =0
typedef Alignment
bool hasAlphaChannel() const
void update()
void setScalingEnabled(bool scaling, bool onlyDownscaling=true)
Definition: imagewidget.cpp:224
QSize size() const
virtual void resizeEvent(QResizeEvent *e)
Definition: imagewidget.cpp:273
virtual void paintEvent(QPaintEvent *event)
void setKeepAspectRatio(Qt::AspectRatioMode mode)
Definition: imagewidget.cpp:230
int x() const
void drawPixmap(const QRectF &target, const QPixmap &pixmap, const QRectF &source)
QRect rect() const
qreal currentValue() const
void setPixmap(const QPixmap &pixmap)
Definition: imagewidget.cpp:200
Qt::HANDLE handle() const
QPixmap scaled(int width, int height, Qt::AspectRatioMode aspectRatioMode, Qt::TransformationMode transformMode) const
bool isNull() const
int height() const
void drawImage(const QRectF &target, const QImage &image, const QRectF &source, QFlags< Qt::ImageConversionFlag > flags)
Qt::HANDLE x11PictureHandle() const
int height() const
void stop()
QPoint topLeft() const
void start(int msec)
void setFadingEnabled(bool fading)
Definition: imagewidget.cpp:235
void setAlphaF(qreal alpha)
bool hasFeature(QFlags< QPaintEngine::PaintEngineFeature > feature) const
QImage toImage() const
virtual void resizeEvent(QResizeEvent *event)
void sizeChanged()
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
bool begin(QPaintDevice *device)
QRect rect() const
void start()
State state() const
void setSingleShot(bool singleShot)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:56 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:15:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.