Don't crash when receive null qfocusevent *

svn path=/branches/work/kde4/kdegraphics/kpdf/; revision=420339
remotes/origin/kpdf-kde4
Albert Astals Cid 21 years ago
parent 888b0c05a9
commit e73e00117d
  1. 2
      part.cpp
  2. 7
      ui/minibar.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 );

@ -366,9 +366,14 @@ void PagesEdit::focusInEvent( QFocusEvent * e )
// call default handler
QLineEdit::focusInEvent( e );
}
#include <kdebug.h>
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 );

Loading…
Cancel
Save