From b455fb12216014516e8901daebd12e8eb837cdfb Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sun, 16 Sep 2007 17:06:18 +0000 Subject: [PATCH] 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 --- ui/tocmodel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/tocmodel.cpp b/ui/tocmodel.cpp index 7f36a90f6..4253443a0 100644 --- a/ui/tocmodel.cpp +++ b/ui/tocmodel.cpp @@ -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()