Commit 9e45d58a authored by Pino Toscano's avatar Pino Toscano

adapt to the recent debug areas

svn path=/trunk/KDE/kdegraphics/okular/; revision=752570
parent c6a6c387
......@@ -10,6 +10,6 @@
#ifndef _OKUAR_DEBUG_P_H_
#define _OKUAR_DEBUG_P_H_
#define OkularDebug 4650
#define OkularDebug 4700
#endif
......@@ -45,7 +45,7 @@
#include "formfields.h"
#endif
static const int PDFDebug = 4653;
static const int PDFDebug = 4710;
class PDFEmbeddedFile : public Okular::EmbeddedFile
{
......
......@@ -138,7 +138,7 @@ bool GSGenerator::loadDocument( const QString & fileName, QVector< Okular::Page
m_internalDocument = spectre_document_new();
spectre_document_load(m_internalDocument, QFile::encodeName(fileName));
pagesVector.resize( spectre_document_get_n_pages(m_internalDocument) );
kDebug() << "Page count: " << pagesVector.count();
kDebug(4711) << "Page count:" << pagesVector.count();
return loadPages(pagesVector);
}
......@@ -175,7 +175,7 @@ bool GSGenerator::loadPages( QVector< Okular::Page * > & pagesVector )
SpectreOrientation pageOrientation = SPECTRE_ORIENTATION_PORTRAIT;
page = spectre_document_get_page (m_internalDocument, i);
if (spectre_document_status (m_internalDocument)) {
kDebug() << "Error getting page" << i << spectre_status_to_string(spectre_document_status(m_internalDocument));
kDebug(4711) << "Error getting page" << i << spectre_status_to_string(spectre_document_status(m_internalDocument));
} else {
spectre_page_get_size(page, &width, &height);
pageOrientation = spectre_page_get_orientation(page);
......@@ -189,7 +189,7 @@ bool GSGenerator::loadPages( QVector< Okular::Page * > & pagesVector )
void GSGenerator::generatePixmap( Okular::PixmapRequest * req )
{
kWarning() << "receiving" << *req;
kWarning(4711) << "receiving" << *req;
SpectrePage *page = spectre_document_get_page(m_internalDocument, req->pageNumber());
......
......@@ -94,7 +94,7 @@ void GSRendererThread::run()
if (image->width() != wantedWidth || image->height() != wantedHeight)
{
kWarning(4656) << "Generated image does not match wanted size " << image->width() << " " << m_currentRequest->width() << " " << image->height() << " " << m_currentRequest->height() ;
kWarning(4711) << "Generated image does not match wanted size " << image->width() << " " << m_currentRequest->width() << " " << image->height() << " " << m_currentRequest->height() ;
QImage aux = image->scaled(wantedWidth, wantedHeight);
delete image;
image = new QImage(aux);
......
......@@ -36,7 +36,7 @@
#include <okular/core/page.h>
#include <okular/core/area.h>
const int XpsDebug = 4658;
const int XpsDebug = 4712;
static KAboutData createAboutData()
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment