libkonq and kactioncollection

Benjamin Meyer ben at meyerhome.net
Mon Dec 20 18:12:29 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 20 December 2004 1:07 pm, David Faure wrote:
> On Monday 20 December 2004 19:03, Benjamin Meyer wrote:
> > On Monday 20 December 2004 12:50 pm, David Faure wrote:
> > > On Monday 20 December 2004 18:41, Benjamin Meyer wrote:
> > > > In konq_popupmenu.cc, line 218 (and several other spots in the file)
> > > > it tries to make a KActionCollection by passing a KActionCollection
> > > > which is depreciated and disabled by KDE_NO_COMPAT.
> > > >
> > > > http://developer.kde.org/documentation/library/cvs-api/kdeui/html/cla
> > > >ssKA ctionCollection.html#a1
> > > >
> > > > I am not quite sure how to fix this one.  Anyone have any hints?
> > >
> > > You mean m_actions(actions)? m_actions is a reference, not an actual
> > > KActionCollection object... Do you really get a gcc warning due to
> > > KDE_DEPRECATED there?
> >
> > Error :)
> >
> > konq_popupmenu.cc: In constructor `
> >    KonqPopupMenu::KonqPopupMenu(KBookmarkManager*, const KFileItemList&,
> > KURL, KActionCollection&, KNewMenu*, bool)':
> > konq_popupmenu.cc:193: error: invalid conversion from `QObject*' to
> > `QWidget*'
>
> OK it's not "by passing a KActionCollection" then, it's "by passing a
> QObject *" (and it's for m_ownActions). Try changing the QObject* cast to a
> QWidget* one.
> The real solution is probably to turn m_ownActions into a
> QValueList<KAction*> in KDE4.

Bingo, that was it.

- -Benjamin Meyer

- -- 
aka icefox
Public Key: http://www.icefox.net/public_key.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBxxYN1rZ3LTw38vIRAk1GAKCDrfwnHqc8jvokDLf/a5MovQR/5gCfe218
2l72hWmdQWaARXaFrmSchHw=
=2gAY
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list