KKeyDialog Class Reference

[kdeui Index] [kdeui Hierarchy] [Headers]


The KKeyDialog class is used for configuring dictionaries of key/action associations for KAccel and KGlobalAccel More...

#include <kkeydialog.h>

Inherits: QDialog (qt)

Public Members


Detailed Description

The KKeyDialog class is used for configuring dictionaries of key/action associations for KAccel and KGlobalAccel. It uses the KKeyChooser widget and offers buttons to set all keys to defaults and invoke on-line help.

Two static methods are supplied which provide the most convienient interface to the dialog. For example you could use KAccel and KKeyDialog like this

KAccel keys;

keys.insertItem( i18n("Zoom in" ), "Zoom in", "+" ); keys.connectItem( "Zoom in", myWindow, SLOT( zoomIn() ) );

keys.connectItem( KAccel::Print, myWindow, SLOT( print() ) );

keys.readSettings();

if( KKeyDialog::configureKeys( &keys ) ) { ... }

This will also implicitely save the settings. If you don't want this, you can call

if( KKeyDialog::configureKeys( &keys, false ) ) { // do not save settings ... }



Documentation generated by tasin@cd1 on Die Nov 30 17:31:44 CET 1999
Kdoc