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
00022 #ifndef KCHECKACCELERATORS_H_
00023 #define KCHECKACCELERATORS_H_
00024
00025 #include <kdeui_export.h>
00026
00027 #include <QObject>
00028 #include <QPointer>
00029
00030 #include <QTimer>
00031
00032 class QDialog;
00033 class QTextBrowser;
00034
00084 class KCheckAccelerators: public QObject
00085 {
00086 Q_OBJECT
00087 public:
00092 static void initiateIfNeeded(QObject* parent);
00096 bool eventFilter(QObject*, QEvent* e);
00097
00098 private:
00099 KCheckAccelerators(QObject* parent, int key, bool autoCheck, bool copyWidgetText);
00100
00101 void checkAccelerators(bool automatic);
00102 int key;
00103 bool block;
00104 bool alwaysShow;
00105 bool autoCheck;
00106
00107 bool copyWidgetText;
00108 QString copyWidgetTextCommand;
00109
00110 QTimer autoCheckTimer;
00111 void createDialog(QWidget *parent, bool automatic);
00112 QPointer<QDialog> drklash;
00113 QTextBrowser *drklash_view;
00114
00115 private Q_SLOTS:
00116 void autoCheckSlot();
00117 void slotDisableCheck(bool);
00118 };
00119
00120 #endif