D29231: Add keyboard_shortcuts_inhibit protocol

Cyril Rossi noreply at phabricator.kde.org
Wed Apr 29 10:41:05 BST 2020


crossi added a comment.


  some code style related comments

INLINE COMMENTS

> test_keyboard_shortcuts_inhibitor_interface.cpp:109
> +    m_manager = m_display.createKeyboardShortcutsInhibitManager(this);
> +     QVERIFY(m_serverCompositor->isValid());
> +    connect(m_serverCompositor, &CompositorInterface::surfaceCreated, this, [this](SurfaceInterface *surface) {

indentation

> test_keyboard_shortcuts_inhibitor_interface.cpp:154
> +    for (int i = 0; i < 3; ++i) {
> +        KWayland::Client::Surface *s =m_clientCompositor->createSurface(this);
> +        m_clientSurfaces += s->operator wl_surface *();

add space after =

> display.h:328
> +     */
> +    KeyboardShortcutsInhibitManagerInterface *createKeyboardShortcutsInhibitManager(QObject *object);
> +

parameter should be `QObject *parent = nullptr`

> keyboard_shortcuts_inhibit_interface.h:69
> +    friend class KeyboardShortcutsInhibitorInterface;
> +    explicit KeyboardShortcutsInhibitManagerInterface(Display *d, QObject *parent);
> +    void removeInhibitor(SurfaceInterface *const surface, SeatInterface *const seat);

parent parameter should be defaulted to nullptr

REPOSITORY
  R127 KWayland

REVISION DETAIL
  https://phabricator.kde.org/D29231

To: bport, zzag, davidedmundson, apol
Cc: romangg, crossi, kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200429/4a295828/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list