Use new Q_OS_* macros.

frameworks
Arnold Dumas 12 years ago
parent 6300c30fea
commit d852a7bee0
  1. 4
      core/utils.cpp
  2. 4
      generators/poppler/generator_pdf.cpp
  3. 2
      part.cpp

@ -26,7 +26,7 @@
#include <QX11Info> #include <QX11Info>
#endif #endif
#ifdef Q_WS_MAC #ifdef Q_OS_MAC
#include <ApplicationServices/ApplicationServices.h> #include <ApplicationServices/ApplicationServices.h>
#include <IOKit/graphics/IOGraphicsLib.h> #include <IOKit/graphics/IOGraphicsLib.h>
#endif #endif
@ -188,7 +188,7 @@ QSizeF Utils::realDpi(QWidget* widgetOnScreen)
return res; return res;
} }
#elif defined(Q_WS_MAC) #elif defined(Q_OS_MAC)
/* /*
* Code copied from http://developer.apple.com/qa/qa2001/qa1217.html * Code copied from http://developer.apple.com/qa/qa2001/qa1217.html
*/ */

@ -81,7 +81,7 @@ class PDFOptionsPage : public QWidget
layout->addWidget(m_forceRaster); layout->addWidget(m_forceRaster);
layout->addStretch(1); layout->addStretch(1);
#if defined(Q_WS_WIN) #if defined(Q_OS_WIN)
m_printAnnots->setVisible( false ); m_printAnnots->setVisible( false );
#endif #endif
setPrintAnnots( true ); // Default value setPrintAnnots( true ); // Default value
@ -969,7 +969,7 @@ void PDFGenerator::requestFontData(const Okular::FontInfo &font, QByteArray *dat
#define DUMMY_QPRINTER_COPY #define DUMMY_QPRINTER_COPY
bool PDFGenerator::print( QPrinter& printer ) bool PDFGenerator::print( QPrinter& printer )
{ {
#ifdef Q_WS_WIN #ifdef Q_OS_WIN
QPainter painter; QPainter painter;
painter.begin(&printer); painter.begin(&printer);

@ -2627,7 +2627,7 @@ void Part::slotPrint()
{ {
if (m_document->pages() == 0) return; if (m_document->pages() == 0) return;
#ifdef Q_WS_WIN #ifdef Q_OS_WIN
QPrinter printer(QPrinter::HighResolution); QPrinter printer(QPrinter::HighResolution);
#else #else
QPrinter printer; QPrinter printer;

Loading…
Cancel
Save