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;
426 const int widgetUserPropertyIndex = widgetUserPropertyName ? cb->metaObject()->indexOfProperty(widgetUserPropertyName) : -1;
void updateWidgetsDefault()
Traverse the specified widgets, sets the state of all known widgets according to the default state in...
Definition: kconfigdialogmanager.cpp:371
void updateWidgets()
Traverse the specified widgets, sets the state of all known widgets according to the state in the set...
Definition: kconfigdialogmanager.cpp:332
bool isValid() const
const Key & key() const
void addWidget(QWidget *widget)
Add additional widgets to manage.
Definition: kconfigdialogmanager.cpp:177
const QMetaObject * superClass() const
bool hasNext() const
QString label(StandardShortcut id)
Returns a localized label for user-visible display.
Definition: kstandardshortcut.cpp:267
#define K_GLOBAL_STATIC(TYPE, NAME)
void setupWidget(QWidget *widget, KConfigSkeletonItem *item)
Setup secondary widget properties.
Definition: kconfigdialogmanager.cpp:182
void settingsChanged()
One or more of the settings have been saved (such as when the user clicks on the Apply button)...
const QObjectList & children() 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:517
bool isEmpty() const
Provides a means of automatically retrieving, saving and resetting KConfigSkeleton based settings in ...
Definition: kconfigdialogmanager.h:85
virtual const QMetaObject * metaObject() const
void setEditText(const QString &text)
Class for handling preferences settings for an application.
Definition: kconfigskeleton.h:40
QMetaProperty userProperty() const
bool isEditable() const
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
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
KConfigDialogManager(QWidget *parent, KCoreConfigSkeleton *conf)
Constructor.
Definition: kconfigdialogmanager.cpp:69
int findText(const QString &text, QFlags< Qt::MatchFlag > flags) const
const char * name() const
bool parseChildren(const QWidget *widget, bool trackChanges)
Recursive function that finds all known children.
Definition: kconfigdialogmanager.cpp:225
void setEnabled(bool)
int count(const T &value) const
QVariant property(const char *name) const
int toInt(bool *ok) const
objectName
bool isEmpty() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
static int registerArea(const QByteArray &areaName, bool enabled=true)
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
bool signalsBlocked() const
bool blockSignals(bool block)
Item next()
const char * className() const
const char * name() const
int indexOfProperty(const char *name) const
whatsThis
QString mid(int position, int n) const
void widgetModified()
If retrieveSettings() was told to track changes then if any known setting was changed this signal wil...
void setCurrentIndex(int index)
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
bool isValid() const
static QHash< QString, QByteArray > * propertyMap()
Retrieve the property map.
Definition: kconfigdialogmanager.cpp:156
bool setProperty(const char *name, const QVariant &value)
toolTip
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
const T & value() const
bool isWidgetType() const
currentText
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setProperty(QWidget *w, const QVariant &v)
Set a property.
Definition: kconfigdialogmanager.cpp:450
QObject * parent() const
void updateSettings()
Traverse the specified widgets, saving the settings of all known widgets in the settings object...
Definition: kconfigdialogmanager.cpp:378
QString toString() const
singleShot
static QHash< QString, QByteArray > * changedMap()
Retrieve the widget change map.
Definition: kconfigdialogmanager.cpp:162
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.