KDEUI
#include <kcheckaccelerators.h>
Public Member Functions | |
bool | eventFilter (QObject *, QEvent *e) |
Static Public Member Functions | |
static void | initiateIfNeeded (QObject *parent) |
Detailed Description
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):
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.
COPY WIDGET TEXT:
You can copy widgets' texts to find them in translation files faster by middle-clicking them. Put the following lines in ~/.kde4/share/config/kdeglobals (or in rc file for specific app):
Where %1 gets replaced with program name and %2 - with text. CopyWidgetTextCommand may be empty, in which case the text gets copied to clipboard. Press Ctrl+MMB to get widget text w/o accelerator mark (&)
Definition at line 84 of file kcheckaccelerators.h.
Member Function Documentation
Re-implemented to filter the parent's events.
Definition at line 93 of file kcheckaccelerators.cpp.
|
static |
Creates a KCheckAccelerators instance for the given object if this feature is enabled in kdeglobals.
- Parameters
-
parent the parent to check
Definition at line 56 of file kcheckaccelerators.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.