KXmlGui

kcheckaccelerators.h
1 /*
2  This file is part of the KDE libraries
3  SPDX-FileCopyrightText: 1997 Matthias Kalle Dalheimer <[email protected]>
4  SPDX-FileCopyrightText: 1998, 1999, 2000 KDE Team
5  SPDX-FileCopyrightText: 2008 Nick Shaforostoff <[email protected]>
6 
7  SPDX-License-Identifier: LGPL-2.0-or-later
8 */
9 
10 #ifndef KCHECKACCELERATORS_H_
11 #define KCHECKACCELERATORS_H_
12 
13 #include <QObject>
14 #include <QPointer>
15 
16 #include <QTimer>
17 
18 class QDialog;
19 class QTextBrowser;
20 
69 {
70  Q_OBJECT
71 public:
72  KCheckAccelerators(QObject *parent, int key, bool autoCheck, bool copyWidgetText);
76  bool eventFilter(QObject *, QEvent *e) override;
77 
78 private:
79  void checkAccelerators(bool automatic);
80  int key;
81  bool block;
82  bool alwaysShow;
83  bool autoCheck;
84 
85  bool copyWidgetText;
86  QString copyWidgetTextCommand;
87 
88  QTimer autoCheckTimer;
89  void createDialog(QWidget *parent, bool automatic);
90  QPointer<QDialog> drklash;
91  QTextBrowser *drklash_view;
92 
93 private Q_SLOTS:
94  void autoCheckSlot();
95  void slotDisableCheck(bool);
96 };
97 
98 #endif
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QObject * parent() const const
bool eventFilter(QObject *, QEvent *e) override
Re-implemented to filter the parent&#39;s events.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Aug 12 2020 22:50:46 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.