| 610 | } |
| 611 | |
| 612 | void DocumentContainerPrivate::get_image_size(const litehtml::tchar_t *src, |
| 613 | const litehtml::tchar_t *baseurl, |
| 614 | litehtml::size &sz) |
| 615 | { |
| 616 | const auto qtSrc = QString::fromUtf8(src); |
| 617 | const auto qtBaseUrl = QString::fromUtf8(baseurl); |
| 618 | if (qtSrc.isEmpty()) // for some reason that happens |
| 619 | return; |
| 620 | qDebug(log) << "get_image_size:" << QString("src = \"%1\";").arg(qtSrc).toUtf8().constData() |
| 621 | << QString("base = \"%1\"").arg(qtBaseUrl).toUtf8().constData(); |
| 622 | const QPixmap pm = getPixmap(qtSrc, qtBaseUrl); |
| 623 | sz.width = pm.width(); |
| 624 | sz.height = pm.height(); |
| 625 | } |
| 626 | |
| 627 | void DocumentContainerPrivate::drawSelection(QPainter *painter, const QRect &clip) const |
| 628 | { |
no test coverage detected