59 QSize dest_size =
image_.size();
60 dest_size.scale( width(), height(), Qt::KeepAspectRatio );
61 QRect dest_rect( width() / 2 - dest_size.width() / 2,
62 height() / 2 - dest_size.height() / 2,
66 QPainter painter(
this );
67 painter.drawPixmap( dest_rect,
image_ );
void update(const std::string &key, const XmlRpc::XmlRpcValue &v)