Kross
Go to the documentation of this file.
20 #ifndef KROSS_CHILDRENINTERFACE_H
21 #define KROSS_CHILDRENINTERFACE_H
24 #include <QtCore/QHash>
25 #include <QtCore/QObject>
38 class KROSSCORE_EXPORT ChildrenInterface
47 AutoConnectSignals = 0x01,
70 LastOption = 0x1000000
80 void addObject(
QObject*
object,
const QString& name = QString(), Options options = NoOption) {
81 QString n =
name.isNull() ?
object->objectName() :
name;
82 m_objects.insert(n,
object);
83 if( options != NoOption )
84 m_options.insert(n, options);
90 bool hasObject(
const QString& name)
const {
91 return m_objects.contains(name);
97 QObject* object(
const QString& name)
const {
98 return m_objects.contains(name) ? m_objects.value(name) : 0;
111 Options objectOption(
const QString& name)
const {
112 return m_options.contains(name) ? m_options.value(name) : NoOption;
const char * name(StandardAction id)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Jan 30 2020 00:00:00 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.