class KSettings.Dialog


Table of contents
Modules
kutils Classes
All Classes
Module kutils
Namespace ksettings
Class KSettings.Dialog
Inherits KCMultiDialog

Generic configuration dialog that works over component boundaries

For more information see KSettings.

This class aims to standardize the use of configuration dialogs in KDE applications. Especially when using KParts and/or Plugins you face problems creating a consistent config dialog.

To show a configuration dialog you only have to call the show method and be done with it. A code example:

You initialize m_cfgdlg with

m_cfgdlg = new Dialog( this );
If you use a KPart that was not especially designed for your app you can use the second constructor:
QStringList kpartslist;
for( all my kparts )
kpartslist += m_mypart->componentData().componentName();
m_cfgdlg = new Dialog( kpartslist, this );
and the action for the config dialog is connected to the show slot:
KStdAction.preferences( m_cfgdlg, SLOT( show() ), actionCollection() );

If you need to be informed when the config was changed and applied in the dialog you might want to take a look at Dispatcher.

For more information see KSettings.

Author Matthias Kretz



methods