Commit 8e4d1708 authored by Pino Toscano's avatar Pino Toscano

few "krazy fixes", patch by Fábio Firmo <fabio.a.firmo@gmail.com>

svn path=/trunk/KDE/kdegraphics/okular/; revision=770943
parent c59b0d8e
......@@ -19,6 +19,9 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef QNATSORT_H
#define QNATSORT_H
#include <QtCore/QString>
/**
......@@ -47,3 +50,5 @@ bool caseSensitiveNaturalOrderLessThen( const QString &left, const QString &righ
* in natural order and case insensitive.
*/
bool caseInsensitiveNaturalOrderLessThen( const QString &left, const QString &right );
#endif
......@@ -1294,7 +1294,7 @@ void PDFGenerator::addAnnotations( Poppler::Page * popplerPage, Okular::Page * p
QString contents = newann->contents();
contents.replace( QLatin1Char( '\r' ), QLatin1Char( '\n' ) );
newann->setContents( contents );
// explicitely mark as external
// explicitly mark as external
newann->setFlags( newann->flags() | Okular::Annotation::External );
page->addAnnotation(newann);
}
......
......@@ -7,6 +7,8 @@
* (at your option) any later version. *
***************************************************************************/
#include "generator_ghostview.h"
#include <math.h>
#include <qfile.h>
......@@ -28,7 +30,6 @@
#include "ui_gssettingswidget.h"
#include "gssettings.h"
#include "generator_ghostview.h"
#include "rendererthread.h"
static KAboutData createAboutData()
......
......@@ -7,6 +7,8 @@
* (at your option) any later version. *
***************************************************************************/
#include "annotationproxymodels.h"
#include <QtCore/QList>
#include <QtGui/QItemSelection>
......@@ -14,8 +16,6 @@
#include "annotationmodel.h"
#include "annotationproxymodels.h"
PageFilterProxyModel::PageFilterProxyModel( QObject *parent )
: QSortFilterProxyModel( parent ),
mGroupByCurrentPage( false ),
......@@ -252,7 +252,7 @@ class AuthorGroupItem
void dump( int level = 0 )
{
QString prefix;
for ( int i = 0; i < level; ++i ) prefix += " ";
for ( int i = 0; i < level; ++i ) prefix += ' ';
qDebug( "%s%s", qPrintable( prefix ), ( mType == Page ? "Page" : (mType == Author ? "Author" : "Annotation") ) );
......
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