Commit 9eb8dd8d authored by Milian Wolff's avatar Milian Wolff

Adapt to KDevelop API changes

parent 820775f3
......@@ -38,7 +38,7 @@ REGISTER_DUCHAIN_ITEM_WITH_DATA(PythonTopDUContext, TopDUContextData);
REGISTER_DUCHAIN_ITEM_WITH_DATA(PythonNormalDUContext, DUContextData);
template<>
QWidget* PythonTopDUContext::createNavigationWidget(Declaration* decl, TopDUContext* topContext,
KDevelop::AbstractNavigationWidget* PythonTopDUContext::createNavigationWidget(Declaration* decl, TopDUContext* topContext,
KDevelop::AbstractNavigationWidget::DisplayHints hints) const {
if ( ! decl ) {
qCDebug(KDEV_PYTHON_DUCHAIN) << "no declaration, not returning navigationwidget";
......@@ -48,7 +48,7 @@ QWidget* PythonTopDUContext::createNavigationWidget(Declaration* decl, TopDUCont
}
template<>
QWidget* PythonNormalDUContext::createNavigationWidget(Declaration* decl, TopDUContext* topContext,
KDevelop::AbstractNavigationWidget* PythonNormalDUContext::createNavigationWidget(Declaration* decl, TopDUContext* topContext,
KDevelop::AbstractNavigationWidget::DisplayHints hints) const {
if ( ! decl ) {
qCDebug(KDEV_PYTHON_DUCHAIN) << "no declaration, not returning navigationwidget";
......
......@@ -24,8 +24,6 @@
#include <language/duchain/ducontext.h>
#include <language/editor/modificationrevision.h>
class QWidget;
namespace KDevelop
{
class Declaration;
......@@ -58,10 +56,10 @@ public:
PythonDUContext(const Param1& p1, const Param2& p2) : BaseContext(p1, p2) {
static_cast<KDevelop::DUChainBase*>(this)->d_func_dynamic()->setClassId(this);
}
QWidget* createNavigationWidget(KDevelop::Declaration* decl, KDevelop::TopDUContext* topContext,
KDevelop::AbstractNavigationWidget* createNavigationWidget(KDevelop::Declaration* decl, KDevelop::TopDUContext* topContext,
KDevelop::AbstractNavigationWidget::DisplayHints hints) const override;
enum {
Identity = IdentityT
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment