KNewStuff
imagepreviewwidget.cpp
Go to the documentation of this file.
73 QSize scaled = QSize(qMin(width - 2*margin, m_image.width()*2), qMin(height - 2*margin, m_image.height()*2));
83 painter.drawPixmap(framePoint, m_frameImage.scaled(m_scaledImage.width() + 10, m_scaledImage.height() + 10));
void clicked()
void updateGeometry()
QRect contentsRect() const
virtual QSize sizeHint() const
Definition: imagepreviewwidget.cpp:87
static QString locate(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
int height() const
void scale(int width, int height, Qt::AspectRatioMode mode)
bool isNull() const
int x() const
int y() const
int width() const
virtual void mousePressEvent(QMouseEvent *event)
int width() const
void drawPixmap(const QRectF &target, const QPixmap &pixmap, const QRectF &source)
virtual void resizeEvent(QResizeEvent *event)
Definition: imagepreviewwidget.cpp:52
QPixmap scaled(int width, int height, Qt::AspectRatioMode aspectRatioMode, Qt::TransformationMode transformMode) const
void setImage(const QImage &preview)
Definition: imagepreviewwidget.cpp:38
virtual void mousePressEvent(QMouseEvent *event)
Definition: imagepreviewwidget.cpp:46
ImagePreviewWidget(QWidget *parent=0)
Definition: imagepreviewwidget.cpp:29
QSize maximumSize() const
void repaint()
int width() const
void drawImage(const QRectF &target, const QImage &image, const QRectF &source, QFlags< Qt::ImageConversionFlag > flags)
QFontMetrics fontMetrics() const
int height() const
QSize size() const
void setX(int x)
void setY(int y)
int height() const
virtual void paintEvent(QPaintEvent *event)
Definition: imagepreviewwidget.cpp:59
virtual void resizeEvent(QResizeEvent *event)
int height() const
QImage scaled(int width, int height, Qt::AspectRatioMode aspectRatioMode, Qt::TransformationMode transformMode) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:43 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:25:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.