diff --git a/part.cpp b/part.cpp index c3a739443..cd7d235c4 100644 --- a/part.cpp +++ b/part.cpp @@ -790,8 +790,6 @@ void Part::slotPrint() if (width > height) landscape++; else portrait++; } -#warning whoever ported Kprinter messed, setOrientation is QPrinted::Orientation not Qt::Orientation -#warning change it // if (landscape > portrait) printer.setOrientation(KPrinter::Landscape); if (printer.setup(widget())) doPrint( printer ); diff --git a/ui/minibar.cpp b/ui/minibar.cpp index 524784d9f..ceb152730 100644 --- a/ui/minibar.cpp +++ b/ui/minibar.cpp @@ -366,9 +366,14 @@ void PagesEdit::focusInEvent( QFocusEvent * e ) // call default handler QLineEdit::focusInEvent( e ); } - +#include void PagesEdit::focusOutEvent( QFocusEvent * e ) { + if (!e) + { + kdDebug() << "Got a null QFocusEvent, investigate" << endl; + return; + } // change background color to a dark tone #warning setLineWidth does not exists in Qt4 // setLineWidth( 1 );