KConfigWidgets
kconfigdialogmanager.cpp
53 // KF6: Drop this and get signals only from metaObject and/or widget's dynamic properties kcfg_property/kcfg_propertyNotify
183 allAutoExclusiveDirectChildren = allAutoExclusiveDirectChildren && button->autoExclusive() && button->parent() == gb;
206 const QMetaMethod onWidgetModifiedSlot = metaObject()->method(metaObject()->indexOfSlot("onWidgetModified()"));
207 Q_ASSERT(onWidgetModifiedSlot.isValid() && metaObject()->indexOfSlot("onWidgetModified()") >= 0);
264 qCWarning(KCONFIG_WIDGETS_LOG) << "Don't know how to monitor widget" << childWidget->metaObject()->className() << "for changes!";
285 qCWarning(KCONFIG_WIDGETS_LOG) << "A widget named" << widgetName << "was found but there is no setting named" << configId;
303 // QHash<QString, QByteArray>::const_iterator changedIt = s_changedMap()->constFind(childWidget->metaObject()->className());
308 // qCDebug(KCONFIG_WIDGETS_LOG) << "Widget '" << widgetName << "' (" << childWidget->metaObject()->className() << ") remains unmanaged.";
343 // qCDebug(KCONFIG_WIDGETS_LOG) << "The setting" << it.key() << "[" << widget->className() << "] has changed";
424 const int qcomboUserPropertyIndex = qcomboUserPropertyName ? cb->QComboBox::metaObject()->indexOfProperty(qcomboUserPropertyName) : -1;
426 const int widgetUserPropertyIndex = widgetUserPropertyName ? cb->metaObject()->indexOfProperty(widgetUserPropertyName) : -1;
442 qCWarning(KCONFIG_WIDGETS_LOG) << "kcfg_property on" << widget->metaObject()->className() << "is not of type ByteArray";
474 qCWarning(KCONFIG_WIDGETS_LOG) << "kcfg_propertyNotify on" << widget->metaObject()->className() << "is not of type ByteArray";
static QHash< QString, QByteArray > * propertyMap()
Retrieve the map between widgets class names and the USER properties used for the configuration value...
Definition: kconfigdialogmanager.cpp:105
currentText
whatsThis
virtual QVariant maxValue() const
bool isValid() const const
virtual QVariant property() const=0
void setupWidget(QWidget *widget, KConfigSkeletonItem *item)
Setup secondary widget properties.
Definition: kconfigdialogmanager.cpp:133
Q_EMITQ_EMIT
typedef QObjectList
singleShot
virtual void setProperty(const QVariant &p)=0
int count(const T &value) const const
QLayout * layout() const const
QMetaProperty userProperty() const const
bool isValid() const const
void update()
QString toolTip() const
void setCurrentIndex(int index)
QString name() const
QByteArray toByteArray() const const
void setProperty(QWidget *w, const QVariant &v)
Set a property.
Definition: kconfigdialogmanager.cpp:482
const T & value() const const
static QHash< QString, QByteArray > * changedMap()
Retrieve the map between widgets class names and signals that are listened to detect changes in the c...
Definition: kconfigdialogmanager.cpp:112
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void toggled(bool checked)
Q_GLOBAL_STATIC(Internal::StaticControl, s_instance) class ControlPrivate
void setEditText(const QString &text)
bool signalsBlocked() const const
QString whatsThis() const
void widgetModified()
If retrieveSettings() was told to track changes then if any known setting was changed this signal wil...
QVariant::Type type() const const
bool blockSignals(bool block)
QHashIterator::Item next()
void updateWidgets()
Traverse the specified widgets, sets the state of all known widgets according to the state in the set...
Definition: kconfigdialogmanager.cpp:323
bool isEmpty() const const
QList< T > findChildren(const QString &name, Qt::FindChildOptions options) const const
void updateWidgetsDefault()
Traverse the specified widgets, sets the state of all known widgets according to the default state in...
Definition: kconfigdialogmanager.cpp:362
const T & at(int i) const const
QMetaMethod method(int index) const const
const QMetaObject * superClass() const const
int toInt(bool *ok) const const
bool isEmpty() const const
bool hasChanged() const
Returns whether the current state of the known widgets are different from the state in the config obj...
Definition: kconfigdialogmanager.cpp:554
QByteArray getUserPropertyChangedSignal(const QWidget *widget) const
Finds the changed signal of the USER property using Qt's MetaProperty system.
Definition: kconfigdialogmanager.cpp:450
KConfigDialogManager(QWidget *parent, KCoreConfigSkeleton *conf)
Constructor.
Definition: kconfigdialogmanager.cpp:31
virtual QVariant minValue() const
bool isDefault() const
Returns whether the current state of the known widgets are the same as the default state in the confi...
Definition: kconfigdialogmanager.cpp:576
void setEnabled(bool)
bool isValid() const const
virtual const QMetaObject * metaObject() const const
QString & remove(int position, int n)
bool hasNext() const const
bool canConvert(int targetTypeId) const const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const const
const char * className() const const
void settingsChanged()
One or more of the settings have been saved (such as when the user clicks on the Apply button).
Provides a means of automatically retrieving, saving and resetting KConfigSkeleton based settings in ...
Definition: kconfigdialogmanager.h:199
bool setProperty(const char *name, const QVariant &value)
QVariant getDefault() const
void addWidget(QWidget *widget)
Add additional widgets to manage.
Definition: kconfigdialogmanager.cpp:128
const char * name() const const
void updateSettings()
Traverse the specified widgets, saving the settings of all known widgets in the settings object.
Definition: kconfigdialogmanager.cpp:375
int findText(const QString &text, Qt::MatchFlags flags) const const
bool isEmpty() const const
bool isEditable() const const
QMetaProperty property(int index) const const
toolTip
const char * constData() const const
autoExclusive
objectName
bool isImmutable() const
QByteArray getCustomPropertyChangedSignal(const QWidget *widget) const
Find the changed signal of the property to use for a widget by querying the "kcfg_propertyNotify" pro...
Definition: kconfigdialogmanager.cpp:469
QByteArray getUserProperty(const QWidget *widget) const
Finds the USER property name using Qt's MetaProperty system, and caches it in the property map (the c...
Definition: kconfigdialogmanager.cpp:404
QByteArray getCustomProperty(const QWidget *widget) const
Find the property to use for a widget by querying the "kcfg_property" property of the widget.
Definition: kconfigdialogmanager.cpp:437
virtual bool isEqual(const QVariant &p) const=0
int indexOfProperty(const char *name) const const
QString mid(int position, int n) const const
void setDefaultsIndicatorsVisible(bool enabled)
Show or hide an indicator when settings have changed from their default value.
Definition: kconfigdialogmanager.cpp:370
void editTextChanged(const QString &text)
const Key & key() const const
QObject * parent() const const
const QObjectList & children() const const
QString toString() const const
QVariant property(const char *name) const const
bool parseChildren(const QWidget *widget, bool trackChanges)
Recursive function that finds all known children.
Definition: kconfigdialogmanager.cpp:198
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Dec 1 2023 04:14:03 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Dec 1 2023 04:14:03 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.