From 06772ef8d4de4771803c91742e8a58cd53eaf18d Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Thu, 28 Jul 2005 13:30:00 +0000 Subject: [PATCH] simple fixes to get this port compiling again. thanks to Albert who made kpdf run! making patches against annotations/ branch now. svn path=/branches/work/kde4/kdegraphics/kpdf/; revision=439565 --- part.cpp | 2 +- ui/presentationwidget.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/part.cpp b/part.cpp index 9a95ca1fc..5e111edaf 100644 --- a/part.cpp +++ b/part.cpp @@ -110,7 +110,7 @@ Part::Part(QWidget *parentWidget, const char *widgetName, connect( m_document, SIGNAL( openURL(const KURL &) ), this, SLOT( openURL(const KURL &) ) ); connect( m_document, SIGNAL( close() ), this, SLOT( close() ) ); - if (parent && parent->metaObject()->slotNames(true).contains("slotQuit()")) + if ( parent && parent->metaObject()->indexOfSlot( SLOT( slotQuit() ) ) != -1 ) connect( m_document, SIGNAL( quit() ), parent, SLOT( slotQuit() ) ); else connect( m_document, SIGNAL( quit() ), this, SLOT( cannotQuit() ) ); diff --git a/ui/presentationwidget.cpp b/ui/presentationwidget.cpp index 76c0be609..ff0c3f5df 100644 --- a/ui/presentationwidget.cpp +++ b/ui/presentationwidget.cpp @@ -654,7 +654,8 @@ void PresentationWidget::generateOverlay() doublePixmap.fill( Qt::black ); pixmapPainter.begin( &doublePixmap ); pixmapPainter.setPen( 0x40 ); - pixmapPainter.setBrush( 0x80 ); +#warning QPainter.setBrush(0x80) ???? port this +// pixmapPainter.setBrush( 0x80 ); pixmapPainter.drawEllipse( 0, 0, side, side ); pixmapPainter.end(); QImage shadow( doublePixmap.convertToImage().smoothScale( side / 2, side / 2 ) );