KDEUI
kconfigdialogmanager.cpp
Go to the documentation of this file.
51 static int debugArea() { static int s_area = KDebug::registerArea("kdeui (KConfigDialogManager)"); return s_area; }
255 QHash<QString, QByteArray>::const_iterator changedIt = s_changedMap->constFind(childWidget->metaObject()->className());
271 kWarning(d->debugArea()) << "Don't know how to monitor widget '" << childWidget->metaObject()->className() << "' for changes!";
292 kWarning(d->debugArea()) << "A widget named '" << widgetName << "' was found but there is no setting named '" << configId << "'";
311 QHash<QString, QByteArray>::const_iterator changedIt = s_changedMap->constFind(childWidget->metaObject()->className());
316 kDebug(d->debugArea()) << "Widget '" << widgetName << "' (" << childWidget->metaObject()->className() << ") remains unmanaged.";
354 // kDebug(d->debugArea()) << "The setting '" << it.key() << "' [" << widget->className() << "] has changed";
424 const int qcomboUserPropertyIndex = qcomboUserPropertyName ? cb->QComboBox::metaObject()->indexOfProperty(qcomboUserPropertyName) : -1;
static QHash< QString, QByteArray > * propertyMap()
Retrieve the property map.
Definition: kconfigdialogmanager.cpp:156
virtual QVariant maxValue() const
virtual QVariant property() const=0
Class for handling preferences settings for an application.
Definition: kconfigskeleton.h:40
void setupWidget(QWidget *widget, KConfigSkeletonItem *item)
Setup secondary widget properties.
Definition: kconfigdialogmanager.cpp:182
KAction * whatsThis(const QObject *recvr, const char *slot, QObject *parent)
Trigger the What's This cursor.
Definition: kstandardaction.cpp:606
virtual void setProperty(const QVariant &p)=0
QString label(StandardShortcut id)
Returns a localized label for user-visible display.
Definition: kstandardshortcut.cpp:267
QString toolTip() const
void setProperty(QWidget *w, const QVariant &v)
Set a property.
Definition: kconfigdialogmanager.cpp:450
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
static QHash< QString, QByteArray > * changedMap()
Retrieve the widget change map.
Definition: kconfigdialogmanager.cpp:162
QString whatsThis() const
void widgetModified()
If retrieveSettings() was told to track changes then if any known setting was changed this signal wil...
void updateWidgets()
Traverse the specified widgets, sets the state of all known widgets according to the state in the set...
Definition: kconfigdialogmanager.cpp:332
void updateWidgetsDefault()
Traverse the specified widgets, sets the state of all known widgets according to the default state in...
Definition: kconfigdialogmanager.cpp:371
bool hasChanged() const
Returns whether the current state of the known widgets are different from the state in the config obj...
Definition: kconfigdialogmanager.cpp:517
KConfigDialogManager(QWidget *parent, KCoreConfigSkeleton *conf)
Constructor.
Definition: kconfigdialogmanager.cpp:69
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:539
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
static int registerArea(const QByteArray &areaName, bool enabled=true)
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:85
void addWidget(QWidget *widget)
Add additional widgets to manage.
Definition: kconfigdialogmanager.cpp:177
void updateSettings()
Traverse the specified widgets, saving the settings of all known widgets in the settings object.
Definition: kconfigdialogmanager.cpp:378
bool isImmutable() const
#define K_GLOBAL_STATIC(TYPE, NAME)
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:407
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:436
virtual bool isEqual(const QVariant &p) const=0
bool parseChildren(const QWidget *widget, bool trackChanges)
Recursive function that finds all known children.
Definition: kconfigdialogmanager.cpp:225
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
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.