KDEUI
#include <kcheckaccelerators.h>
Public Member Functions | |
bool | eventFilter (QObject *, QEvent *e) |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Static Public Member Functions | |
static void | initiateIfNeeded (QObject *parent) |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Additional Inherited Members | |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
objectName | |
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.
Reimplemented from QObject.
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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.