libkonq and kactioncollection
David Faure
faure at kde.org
Mon Dec 20 18:07:26 GMT 2004
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/classKA
> > >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.
--
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the kde-core-devel
mailing list