diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2016-09-07 16:32:05 +0200 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2016-09-30 14:21:39 +0000 |
commit | 04c05e9a53f4fe59c58967809b91ea792b6cffbd (patch) | |
tree | 280aebaeef2349da8373bf6c7e00ad84665b27fc /src/compositor/compositor_api/qwaylandkeyboard.h | |
parent | 5372ec5c131e23cccfbabc43d700ffbbbad973ec (diff) | |
download | qtwayland-04c05e9a53f4fe59c58967809b91ea792b6cffbd.tar.gz |
Make QWaylandKeymap a QObject
This makes it possible to use defaultSeat declaratively by allowing it to be
uninitialized until the QWaylandCompositor::create has been called.
Change-Id: I962cc7cc82a0bbc9240abb50cf92dee77e4a0ba6
Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@hawaiios.org>
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/compositor/compositor_api/qwaylandkeyboard.h')
-rw-r--r-- | src/compositor/compositor_api/qwaylandkeyboard.h | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/src/compositor/compositor_api/qwaylandkeyboard.h b/src/compositor/compositor_api/qwaylandkeyboard.h index 1348f5cd..685134ff 100644 --- a/src/compositor/compositor_api/qwaylandkeyboard.h +++ b/src/compositor/compositor_api/qwaylandkeyboard.h @@ -48,26 +48,7 @@ QT_BEGIN_NAMESPACE class QWaylandKeyboard; class QWaylandKeyboardPrivate; class QWaylandSeat; - -class Q_WAYLAND_COMPOSITOR_EXPORT QWaylandKeymap -{ -public: - QWaylandKeymap(const QString &layout = QString(), const QString &variant = QString(), const QString &options = QString(), - const QString &model = QString(), const QString &rules = QString()); - - inline QString layout() const { return m_layout; } - inline QString variant() const { return m_variant; } - inline QString options() const { return m_options; } - inline QString rules() const { return m_rules; } - inline QString model() const { return m_model; } - -private: - QString m_layout; - QString m_variant; - QString m_options; - QString m_rules; - QString m_model; -}; +class QWaylandKeymap; class Q_WAYLAND_COMPOSITOR_EXPORT QWaylandKeyboard : public QWaylandObject { @@ -88,7 +69,6 @@ public: void setRepeatDelay(quint32 delay); virtual void setFocus(QWaylandSurface *surface); - virtual void setKeymap(const QWaylandKeymap &keymap); virtual void sendKeyModifiers(QWaylandClient *client, uint32_t serial); virtual void sendKeyPressEvent(uint code); @@ -106,6 +86,9 @@ Q_SIGNALS: private: void focusDestroyed(void *data); + +private Q_SLOTS: + void updateKeymap(); }; QT_END_NAMESPACE |