Changeset View
Changeset View
Standalone View
Standalone View
xkb.cpp
Show All 17 Lines | |||||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #include "xkb.h" | 20 | #include "xkb.h" | ||
21 | #include "xkb_qt_mapping.h" | 21 | #include "xkb_qt_mapping.h" | ||
22 | #include "utils.h" | 22 | #include "utils.h" | ||
23 | // frameworks | 23 | // frameworks | ||
24 | #include <KConfigGroup> | 24 | #include <KConfigGroup> | ||
25 | // KWayland | 25 | // KWayland | ||
26 | #include <KWayland/Server/seat_interface.h> | 26 | #include <KWaylandServer/seat_interface.h> | ||
27 | // Qt | 27 | // Qt | ||
28 | #include <QTemporaryFile> | 28 | #include <QTemporaryFile> | ||
29 | #include <QKeyEvent> | 29 | #include <QKeyEvent> | ||
30 | // xkbcommon | 30 | // xkbcommon | ||
31 | #include <xkbcommon/xkbcommon.h> | 31 | #include <xkbcommon/xkbcommon.h> | ||
32 | #include <xkbcommon/xkbcommon-compose.h> | 32 | #include <xkbcommon/xkbcommon-compose.h> | ||
33 | #include <xkbcommon/xkbcommon-keysyms.h> | 33 | #include <xkbcommon/xkbcommon-keysyms.h> | ||
34 | // system | 34 | // system | ||
▲ Show 20 Lines • Show All 533 Lines • ▼ Show 20 Line(s) | |||||
568 | quint32 Xkb::numberOfLayouts() const | 568 | quint32 Xkb::numberOfLayouts() const | ||
569 | { | 569 | { | ||
570 | if (!m_keymap) { | 570 | if (!m_keymap) { | ||
571 | return 0; | 571 | return 0; | ||
572 | } | 572 | } | ||
573 | return xkb_keymap_num_layouts(m_keymap); | 573 | return xkb_keymap_num_layouts(m_keymap); | ||
574 | } | 574 | } | ||
575 | 575 | | |||
576 | void Xkb::setSeat(KWayland::Server::SeatInterface *seat) | 576 | void Xkb::setSeat(KWaylandServer::SeatInterface *seat) | ||
577 | { | 577 | { | ||
578 | m_seat = QPointer<KWayland::Server::SeatInterface>(seat); | 578 | m_seat = QPointer<KWaylandServer::SeatInterface>(seat); | ||
579 | } | 579 | } | ||
580 | 580 | | |||
581 | } | 581 | } |