we need to register QModelIndex as metatype to be able to pass it as parameter for queued slot calls

svn path=/trunk/KDE/kdegraphics/okular/; revision=713205
This commit is contained in:
Pino Toscano 2007-09-16 17:06:18 +00:00
parent 4b3b1a910c
commit b455fb1221

View file

@ -19,6 +19,8 @@
#include "core/document.h"
#include "core/page.h"
Q_DECLARE_METATYPE( QModelIndex )
struct TOCItem
{
TOCItem();
@ -153,6 +155,8 @@ TOCModel::TOCModel( Okular::Document *document, QObject *parent )
: QAbstractItemModel( parent ), d( new TOCModelPrivate( this ) )
{
d->document = document;
qRegisterMetaType< QModelIndex >();
}
TOCModel::~TOCModel()