mirror of
https://invent.kde.org/graphics/okular
synced 2024-07-17 02:37:04 +00:00
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:
parent
4b3b1a910c
commit
b455fb1221
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue