KCoreAddons
KPluginFactory::InheritanceChecker< impl > Struct Template Reference
#include <kpluginfactory.h>
Public Member Functions | |
CreateInstanceWithMetaDataFunction | createInstanceFunction (...) |
CreateInstanceWithMetaDataFunction | createInstanceFunction (QWidget *) |
Static Public Attributes | |
static constexpr bool | _canConstruct |
static constexpr bool | enabled = _canConstruct && !InheritanceWithMetaDataChecker<impl>::enabled |
Detailed Description
template<class impl>
struct KPluginFactory::InheritanceChecker< 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 481 of file kpluginfactory.h.
Member Function Documentation
◆ createInstanceFunction() [1/2]
template<class impl >
|
inline |
Definition at line 493 of file kpluginfactory.h.
◆ createInstanceFunction() [2/2]
template<class impl >
|
inline |
Definition at line 489 of file kpluginfactory.h.
Member Data Documentation
◆ _canConstruct
template<class impl >
|
staticconstexpr |
Initial value:
= std::is_constructible<impl, QWidget *, QVariantList>::value
|| std::is_constructible<impl, QWidget *>::value
|| std::is_constructible<impl, QObject *, QVariantList>::value
|| std::is_constructible<impl, QObject *>::value
property to control the availability of the registerPlugin overload taking default values
Definition at line 483 of file kpluginfactory.h.
◆ enabled
template<class impl >
|
staticconstexpr |
Definition at line 487 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-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.