KAcceleratorManager Class Reference
KDE Accelerator manager. More...
#include <kaccelmanager.h>
Static Public Member Functions | |
void | manage (QWidget *widget) |
Manages the accelerators of a widget. | |
void | manage (QWidget *widget, bool programmers_mode) |
Does the same as the above function, but puts hints in the GUI so the programmer can enhance his program. |
Detailed Description
KDE Accelerator manager.This class can be used to find a valid and working set of accelerators for any widget.
- Author:
- Matthias Hölzer-Klüpfel <mhk@kde.org>
- Version:
- Id
- kaccelmanager.h,v 1.4 2002/09/28 15:16:22 tjansen Exp
- Since:
- 3.1
Definition at line 39 of file kaccelmanager.h.
Member Function Documentation
|
Manages the accelerators of a widget. Call this function on the top widget of the hierarchy you want to manage. It will fix the accelerators of the child widgets so there are never duplicate accelerators. It also tries to put accelerators on as many widgets as possible. The algorithm used tries to take the exisiting accelerators into account, as well as the class of each widget. Hopefully, the result is close to what you would assign manually. QPopupMenu's are managed dynamically, so when you add or remove entries, the accelerators are reassigned. If you add or remove widgets to your toplevel widget, you will have to call manage again to fix the accelerators.
Definition at line 352 of file kaccelmanager.cpp. |
|
Does the same as the above function, but puts hints in the GUI so the programmer can enhance his program. TODO KDE4: merge with the above
Definition at line 357 of file kaccelmanager.cpp. |
The documentation for this class was generated from the following files: