[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: how to put my document in the resourceProvider
From: Boudewijn Rempt <boud () valdyas ! org>
Date: 2007-06-25 14:58:55
Message-ID: 200706251658.57522.boud () valdyas ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Monday 25 June 2007, Thomas Zander wrote:
> As one thing that I wanted to make easy for plugins to use, I wanted to
> put the current document instance in the KoCanvasResouceProvider.
> Unfortunately I can't seem to get anything to compile that puts a
> KWDocument* in a QVariant.
> Does anyone have a hint?
>
> Why can Krita place a layer in the QVariant just fine, if its 'wrapped' in
> a KisSharedPtr ? Is that a way to go?
I'm not sure whether it's the shared pointer that makes it work, but this
macro in kis_layer.h did the trick for me:
Q_DECLARE_METATYPE( KisLayerSP )
> I have a similar problem with a QTextCursor. I'm guessing I need to create
> a struct with things like the document and selection etc which I then
> make possible to place in a QVariant.
>
> Any thoughts appreciated.
--
Boudewijn Rempt
http://www.valdyas.org/fading/index.cgi
["signature.asc" (application/pgp-signature)]
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic