KCoreAddons

KPluginFactory::InheritanceChecker< impl > Struct Template Reference

#include <kpluginfactory.h>

Public Member Functions

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

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

Member Data Documentation

◆ enabled

template<class impl >
constexpr bool KPluginFactory::InheritanceChecker< impl >::enabled
staticconstexpr
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 644 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-2023 The KDE developers.
Generated on Tue Nov 28 2023 04:05:52 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.