• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KDECore

KCheckAccelerators Class Reference

#include <kcheckaccelerators.h>

Inheritance diagram for KCheckAccelerators:

Inheritance graph
[legend]

List of all members.


Public Member Functions

bool eventFilter (QObject *, QEvent *e)
 KCheckAccelerators (QObject *parent)

Detailed Description

For internal use only.

This class allows translators (and application developers) to check for accelerator conflicts in menu and widgets. Put the following in your kdeglobals (or the config file for the application you're testing):

 [Development]
 CheckAccelerators=F12
 AutoCheckAccelerators=false
 AlwaysShowCheckAccelerators=false

The checking can be either manual or automatic. To perform manual check, press the keyboard shortcut set to 'CheckAccelerators' (here F12). If automatic checking is enabled by setting 'AutoCheckAccelerators' to true, check will be performed every time the GUI changes. It's possible that in certain cases the check will be done also when no visible changes in the GUI happen or the check won't be done even if the GUI changed (in the latter case, use manual check ). Automatic checks can be anytime disabled by the checkbox in the dialog presenting the results of the check. If you set 'AlwaysShowCheckAccelerators' to true, the dialog will be shown even if the automatic check didn't find any conflicts, and all submenus will be shown, even those without conflicts.

The dialog first lists the name of the window, then all results for all menus (if the window has a menubar) and then result for all controls in the active window (if there are any checkboxes etc.). For every submenu and all controls there are shown all conflicts grouped by accelerator, and a list of all used accelerators.

Definition at line 66 of file kcheckaccelerators.h.


Constructor & Destructor Documentation

KCheckAccelerators::KCheckAccelerators ( QObject *  parent  ) 

Creates a KCheckAccelerators instance for the given object.

Parameters:
parent the parent to check

Definition at line 79 of file kcheckaccelerators.cpp.


Member Function Documentation

bool KCheckAccelerators::eventFilter ( QObject *  ,
QEvent *  e 
)

Re-implemented to filter the parent's events.

Reimplemented from QObject.

Definition at line 95 of file kcheckaccelerators.cpp.


The documentation for this class was generated from the following files:
  • kcheckaccelerators.h
  • kcheckaccelerators.cpp

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal