Krita Source Code Documentation
Loading...
Searching...
No Matches
kcheckaccelerators.h
Go to the documentation of this file.
1/* This file is part of the KDE libraries
2 SPDX-FileCopyrightText: 1997 Matthias Kalle Dalheimer (kalle@kde.org)
3 SPDX-FileCopyrightText: 1998, 1999, 2000 KDE Team
4 SPDX-FileCopyrightText: 2008 Nick Shaforostoff <shaforostoff@kde.ru>
5
6 SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8
9#ifndef KCHECKACCELERATORS_H_
10#define KCHECKACCELERATORS_H_
11
12#include <QObject>
13#include <QPointer>
14
15#include <QTimer>
16
17class QDialog;
18class QTextBrowser;
19
67class KisKCheckAccelerators: public QObject
68{
69 Q_OBJECT
70public:
71 KisKCheckAccelerators(QObject *parent, int key, bool autoCheck, bool copyWidgetText);
75 bool eventFilter(QObject *, QEvent *e) override;
76
77private:
78 void checkAccelerators(bool automatic);
79 int key {0};
80 bool block {false};
81 bool alwaysShow {false};
82 bool autoCheck {false};
83
84 bool copyWidgetText {false};
86
88 void createDialog(QWidget *parent, bool automatic);
90 QTextBrowser *drklash_view {nullptr};
91
92private Q_SLOTS:
93 void autoCheckSlot();
94 void slotDisableCheck(bool);
95};
96
97#endif
bool eventFilter(QObject *, QEvent *e) override
void checkAccelerators(bool automatic)
QPointer< QDialog > drklash
KisKCheckAccelerators(QObject *parent, int key, bool autoCheck, bool copyWidgetText)
void createDialog(QWidget *parent, bool automatic)