KDEUI
kcheckaccelerators.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KCHECKACCELERATORS_H_
00022 #define KCHECKACCELERATORS_H_
00023
00024 #include <kdeui_export.h>
00025
00026 #include <QObject>
00027 #include <QPointer>
00028
00029 #include <QTimer>
00030
00031 class QDialog;
00032 class QTextBrowser;
00033
00064 class KDEUI_EXPORT KCheckAccelerators : public QObject
00065 {
00066 Q_OBJECT
00067 public:
00072 explicit KCheckAccelerators( QObject* parent );
00076 bool eventFilter( QObject * , QEvent * e);
00077
00078 private:
00079 void checkAccelerators( bool automatic );
00080 int key;
00081 bool alwaysShow;
00082 bool autoCheck;
00083 bool block;
00084 QTimer autoCheckTimer;
00085 void createDialog(QWidget *parent, bool automatic);
00086 QPointer<QDialog> drklash;
00087 QTextBrowser *drklash_view;
00088
00089 private Q_SLOTS:
00090 void autoCheckSlot();
00091 void slotDisableCheck(bool);
00092 };
00093
00094 #endif