From 1d908176608cd9dce49d0fa972eaa7d8ac123eec Mon Sep 17 00:00:00 2001 From: Josef Filzmaier Date: Fri, 16 Jul 2021 00:11:53 +0200 Subject: [PATCH] Replace kWarning with qWarning Even in comments --- generators/poppler/generator_pdf.cpp | 4 ++-- part/pageview.cpp | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/generators/poppler/generator_pdf.cpp b/generators/poppler/generator_pdf.cpp index ef6b7f5cf..aaa52b608 100644 --- a/generators/poppler/generator_pdf.cpp +++ b/generators/poppler/generator_pdf.cpp @@ -762,7 +762,7 @@ void PDFGenerator::loadPages(QVector &pagesVector, int rotation, #endif if (!okularFormFields.isEmpty()) page->setFormFields(okularFormFields); - // kWarning(PDFDebug).nospace() << page->width() << "x" << page->height(); + // qWarning(PDFDebug).nospace() << page->width() << "x" << page->height(); #ifdef PDFGENERATOR_DEBUG qCDebug(OkularPdfDebug) << "load page" << i << "with rotation" << rotation << "and orientation" << orientation; @@ -1566,7 +1566,7 @@ bool PDFGenerator::exportTo(const QString &fileName, const Okular::ExportFormat inline void append(Okular::TextPage *ktp, const QString &s, double l, double b, double r, double t) { - // kWarning(PDFDebug).nospace() << "text: " << s << " at (" << l << "," << t << ")x(" << r <<","<append(s, new Okular::NormalizedRect(l, t, r, b)); } diff --git a/part/pageview.cpp b/part/pageview.cpp index 42896afc8..1e3f4c967 100644 --- a/part/pageview.cpp +++ b/part/pageview.cpp @@ -4428,7 +4428,7 @@ void PageView::slotRelayoutPages() insertY += rHeight; } #ifdef PAGEVIEW_DEBUG - kWarning() << "updating size for pageno" << item->pageNumber() << "cropped" << item->croppedGeometry() << "uncropped" << item->uncroppedGeometry(); + qWarning() << "updating size for pageno" << item->pageNumber() << "cropped" << item->croppedGeometry() << "uncropped" << item->uncroppedGeometry(); #endif } @@ -4550,8 +4550,8 @@ void PageView::slotRequestVisiblePixmaps(int newValue) if (!i->isVisible()) continue; #ifdef PAGEVIEW_DEBUG - kWarning() << "checking page" << i->pageNumber(); - kWarning().nospace() << "viewportRect is " << viewportRect << ", page item is " << i->croppedGeometry() << " intersect : " << viewportRect.intersects(i->croppedGeometry()); + qWarning() << "checking page" << i->pageNumber(); + qWarning().nospace() << "viewportRect is " << viewportRect << ", page item is " << i->croppedGeometry() << " intersect : " << viewportRect.intersects(i->croppedGeometry()); #endif // if the item doesn't intersect the viewport, skip it QRect intersectionRect = viewportRect.intersected(i->croppedGeometry()); @@ -4564,8 +4564,8 @@ void PageView::slotRequestVisiblePixmaps(int newValue) Okular::VisiblePageRect *vItem = new Okular::VisiblePageRect(i->pageNumber(), Okular::NormalizedRect(intersectionRect.translated(-i->uncroppedGeometry().topLeft()), i->uncroppedWidth(), i->uncroppedHeight())); visibleRects.push_back(vItem); #ifdef PAGEVIEW_DEBUG - kWarning() << "checking for pixmap for page" << i->pageNumber() << "=" << i->page()->hasPixmap(this, i->uncroppedWidth(), i->uncroppedHeight()); - kWarning() << "checking for text for page" << i->pageNumber() << "=" << i->page()->hasTextPage(); + qWarning() << "checking for pixmap for page" << i->pageNumber() << "=" << i->page()->hasPixmap(this, i->uncroppedWidth(), i->uncroppedHeight()); + qWarning() << "checking for text for page" << i->pageNumber() << "=" << i->page()->hasTextPage(); #endif Okular::NormalizedRect expandedVisibleRect = vItem->rect; @@ -4580,7 +4580,7 @@ void PageView::slotRequestVisiblePixmaps(int newValue) // if the item has not the right pixmap, add a request for it if (!i->page()->hasPixmap(this, i->uncroppedWidth(), i->uncroppedHeight(), expandedVisibleRect)) { #ifdef PAGEVIEW_DEBUG - kWarning() << "rerequesting visible pixmaps for page" << i->pageNumber() << "!"; + qWarning() << "rerequesting visible pixmaps for page" << i->pageNumber() << "!"; #endif Okular::PixmapRequest *p = new Okular::PixmapRequest(this, i->pageNumber(), i->uncroppedWidth(), i->uncroppedHeight(), devicePixelRatioF(), PAGEVIEW_PRIO, Okular::PixmapRequest::Asynchronous); requestedPixmaps.push_back(p);