qTox
Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
|
Go to the documentation of this file.
21 #include "../pixmapcache.h"
33 return QRectF(QPointF(-
size.width() / 2.0, -
size.height() / 2.0),
size);
41 void Image::paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
45 painter->setRenderHint(QPainter::SmoothPixmapTransform);
46 painter->translate(-
size.width() / 2.0, -
size.height() / 2.0);
47 painter->drawPixmap(0, 0,
pmap);
QRectF boundingRect() const override
Image(QSize size, const QString &filename)
QPixmap get(const QString &filename, QSize size)
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
static PixmapCache & getInstance()
Returns the singleton instance.
void setWidth(qreal width) override
qreal getAscent() const override