KPluginFactory::InheritanceChecker< impl > Struct Template Reference

#include <kpluginfactory.h>

Public Member Functions

CreateInstanceFunction createInstanceFunction (KParts::Part *)
CreateInstanceFunction createInstanceFunction (QWidget *)
CreateInstanceFunction createInstanceFunction (...)

Static Public Attributes

static constexpr bool enabled

Detailed Description

template<class impl>
struct KPluginFactory::InheritanceChecker< impl >

This is used to detect the arguments need for the constructor of metadata-less plugin classes.

You can inherit it, if you want to add new classes and still keep support for the old ones.

Definition at line 641 of file kpluginfactory.h.

Member Data Documentation

template<class impl>
constexpr bool KPluginFactory::InheritanceChecker< impl >::enabled
Initial value:
= std::is_constructible<impl, QWidget *, QObject *, const QVariantList &>::value
|| std::is_constructible<impl, QWidget *, const QVariantList &>::value || std::is_constructible<impl, QObject *, const QVariantList &>::value

property to control the availability of the registerPlugin overload taking default values

Definition at line 643 of file kpluginfactory.h.

The documentation for this struct was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Jan 24 2022 22:54:37 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.