KDEUI
kconfigdialog.cpp
Go to the documentation of this file.
211 QHash<QString,KConfigDialog *>::const_iterator it = KConfigDialogPrivate::openDialogs.constFind( name );
Provides a means of automatically retrieving, saving and resetting KConfigSkeleton based settings in ...
Definition kconfigdialogmanager.h:85
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 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
virtual bool isDefault()
Returns whether the current state of the dialog is the same as the default configuration.
Definition kconfigdialog.cpp:316
static bool showDialog(const QString &name)
Attempts to show the dialog with the name 'name'.
Definition kconfigdialog.cpp:217
KPageWidgetItem * addPage(QWidget *page, const QString &itemName, const QString &pixmapName=QString(), const QString &header=QString(), bool manage=true)
Adds page to the dialog and to KConfigDialogManager.
Definition kconfigdialog.cpp:114
static KConfigDialog * exists(const QString &name)
See if a dialog with the name 'name' already exists.
Definition kconfigdialog.cpp:209
virtual bool hasChanged()
Returns whether the current state of the dialog is different from the current configuration.
Definition kconfigdialog.cpp:311
~KConfigDialog()
Deconstructor, removes name from the list of open dialogs.
Definition kconfigdialog.cpp:108
virtual void updateWidgets()
Update the dialog based on the settings.
Definition kconfigdialog.cpp:303
KConfigDialog(QWidget *parent, const QString &name, KConfigSkeleton *config)
Definition kconfigdialog.cpp:94
void settingsChanged(const QString &dialogName)
One or more of the settings have been permanently changed such as if the user clicked on the Apply or...
virtual void updateWidgetsDefault()
Update the dialog based on the default settings.
Definition kconfigdialog.cpp:307
Class for handling preferences settings for an application.
Definition kconfigskeleton.h:41
void enableButton(ButtonCode id, bool state)
Enable or disable (gray out) a general action button.
Definition kdialog.cpp:661
@ Ok
Show Ok button. (this button accept()s the dialog; result set to QDialog::Accepted)
Definition kdialog.h:141
@ Cancel
Show Cancel-button. (this button reject()s the dialog; result set to QDialog::Rejected)
Definition kdialog.h:144
bool isButtonEnabled(ButtonCode id) const
Returns whether any button is enabled.
Definition kdialog.cpp:668
void setSpacing(int space)
Sets the spacing between the child widgets to space.
Definition khbox.cpp:98
void pageRemoved(KPageWidgetItem *page)
This signal is emitted whenever a page has been removed.
KPageDialog(QWidget *parent=0, Qt::WindowFlags flags=0)
Creates a new page dialog.
Definition kpagedialog.cpp:31
KPageWidgetItem is used by KPageWidget and represents a page.
Definition kpagewidgetmodel.h:51
QWidget * widget() const
Returns the widget of the page widget item.
Definition kpagewidgetmodel.cpp:101
void setIcon(const KIcon &icon)
Sets the icon of the page widget item.
Definition kpagewidgetmodel.cpp:130
void setHeader(const QString &header)
Sets the header of the page widget item.
Definition kpagewidgetmodel.cpp:118
const char header[]
QString i18n(const char *text)
const KComponentData & mainComponent()
const char * name(StandardAction id)
This will return the internal name of a given standard action.
Definition kstandardaction.cpp:223
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.