From kde-core-devel Mon Dec 20 18:07:26 2004 From: David Faure Date: Mon, 20 Dec 2004 18:07:26 +0000 To: kde-core-devel Subject: Re: libkonq and kactioncollection Message-Id: <200412201907.27316.faure () kde ! org> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=110356604531420 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 in KDE4. -- David Faure, faure@kde.org, sponsored by Trolltech to work on KDE, Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).