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()
virtual QSize sizeHint() const
Definition: imagepreviewwidget.cpp:87
static QString locate(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
virtual void resizeEvent(QResizeEvent *event)
Definition: imagepreviewwidget.cpp:52
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
virtual void paintEvent(QPaintEvent *event)
Definition: imagepreviewwidget.cpp:59
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.