Debian Codegraph @

qt5/widgetsaddons/qtkeytrans.h

raw
1 /*
2 * SPDX-FileCopyrightText: 2012~2017 CSSlayer <[email protected]>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6 #ifndef _WIDGETSADDONS_QTKEYTRANS_H_
7 #define _WIDGETSADDONS_QTKEYTRANS_H_
8
9 #include "fcitx5qt5widgetsaddons_export.h"
10 #include <QString>
11 #include <qnamespace.h>
12
13 namespace fcitx {
14
15 FCITX5QT5WIDGETSADDONS_EXPORT bool keyQtToSym(int qtcode,
16 Qt::KeyboardModifiers mod,
17 int &sym, unsigned int &state);
18
19 FCITX5QT5WIDGETSADDONS_EXPORT bool keyQtToSym(int qtcode,
20 Qt::KeyboardModifiers mod,
21 const QString &text, int &sym,
22 unsigned int &state);
23
24 FCITX5QT5WIDGETSADDONS_EXPORT bool symToKeyQt(int sym, unsigned int state,
25 int &qtcode,
26 Qt::KeyboardModifiers &mod);
27 } // namespace fcitx
28
29 #endif // _WIDGETSADDONS_QTKEYTRANS_H_