[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: libkonq and kactioncollection
From:       David Faure <faure () kde ! org>
Date:       2004-12-20 18:07:26
Message-ID: 200412201907.27316.faure () kde ! org
[Download RAW message or body]

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@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic