KCoreAddons

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 495 of file kpluginfactory.h.

Member Data Documentation

template<class impl>
constexpr bool KPluginFactory::InheritanceChecker< impl >::enabled
static
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 497 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-2020 The KDE developers.
Generated on Thu Dec 3 2020 23:03:07 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.