diff options
author | Robert Griebl <robert.griebl@qt.io> | 2024-04-22 12:22:45 +0200 |
---|---|---|
committer | Robert Griebl <robert.griebl@qt.io> | 2024-04-22 13:03:56 +0200 |
commit | f9a31cef5e2a61ac90de5c5e9514485f1639bd5b (patch) | |
tree | d50388b909960b0c2ae261ee61af8d4b97181277 /src/window-lib | |
parent | bbb28ef784612676313ffc2109b1ae022896dabe (diff) |
Replace all signals/slots keywords with Q_SIGNALS/Q_SLOTS
Change-Id: I92238b01155a2e43b8877576faf603957dcb95ba
Reviewed-by: Bernd Weimer <bernd.weimer@qt.io>
Diffstat (limited to 'src/window-lib')
-rw-r--r-- | src/window-lib/inprocesswindow.h | 2 | ||||
-rw-r--r-- | src/window-lib/waylandcompositor.h | 4 | ||||
-rw-r--r-- | src/window-lib/waylandqtamserverextension_p.h | 2 | ||||
-rw-r--r-- | src/window-lib/waylandwindow.h | 4 | ||||
-rw-r--r-- | src/window-lib/window.h | 2 | ||||
-rw-r--r-- | src/window-lib/windowitem.h | 4 | ||||
-rw-r--r-- | src/window-lib/windowmanager.h | 8 |
7 files changed, 13 insertions, 13 deletions
diff --git a/src/window-lib/inprocesswindow.h b/src/window-lib/inprocesswindow.h index 29ec094b..977f60f8 100644 --- a/src/window-lib/inprocesswindow.h +++ b/src/window-lib/inprocesswindow.h @@ -44,7 +44,7 @@ public: // So we let it be set at will (likely by WindowManager) void setContentState(ContentState); -private slots: +private Q_SLOTS: void onVisibleClientSideChanged(); private: diff --git a/src/window-lib/waylandcompositor.h b/src/window-lib/waylandcompositor.h index 9711384d..b13de626 100644 --- a/src/window-lib/waylandcompositor.h +++ b/src/window-lib/waylandcompositor.h @@ -68,7 +68,7 @@ public: void ping(); void close(); -signals: +Q_SIGNALS: void pong(); void popupGeometryChanged(); void xdgSurfaceChanged(); @@ -101,7 +101,7 @@ public: void xdgPing(WindowSurface*); -signals: +Q_SIGNALS: void surfaceMapped(QtAM::WindowSurface *surface); protected: diff --git a/src/window-lib/waylandqtamserverextension_p.h b/src/window-lib/waylandqtamserverextension_p.h index 334ef987..c572ac8c 100644 --- a/src/window-lib/waylandqtamserverextension_p.h +++ b/src/window-lib/waylandqtamserverextension_p.h @@ -39,7 +39,7 @@ public: QVariantMap windowProperties(const QWaylandSurface *surface) const; void setWindowProperty(QWaylandSurface *surface, const QString &name, const QVariant &value); -signals: +Q_SIGNALS: void windowPropertyChanged(QWaylandSurface *surface, const QString &name, const QVariant &value); private: diff --git a/src/window-lib/waylandwindow.h b/src/window-lib/waylandwindow.h index f44e12de..3d209f1f 100644 --- a/src/window-lib/waylandwindow.h +++ b/src/window-lib/waylandwindow.h @@ -50,11 +50,11 @@ public: static bool m_watchdogEnabled; -signals: +Q_SIGNALS: void waylandSurfaceChanged(); void waylandXdgSurfaceChanged(); -private slots: +private Q_SLOTS: void pongReceived(); void pongTimeout(); void pingTimeout(); diff --git a/src/window-lib/window.h b/src/window-lib/window.h index 36c3ad4d..d0b3ddb7 100644 --- a/src/window-lib/window.h +++ b/src/window-lib/window.h @@ -74,7 +74,7 @@ public: virtual QSize size() const = 0; Q_INVOKABLE virtual void resize(const QSize &size) = 0; -signals: +Q_SIGNALS: void sizeChanged(); void windowPropertyChanged(const QString &name, const QVariant &value); void isBeingDisplayedChanged(); diff --git a/src/window-lib/windowitem.h b/src/window-lib/windowitem.h index 3007b22c..379daf55 100644 --- a/src/window-lib/windowitem.h +++ b/src/window-lib/windowitem.h @@ -69,13 +69,13 @@ public: protected: void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override; -signals: +Q_SIGNALS: void windowChanged(); // clazy:exclude=overloaded-signal void primaryChanged(); void objectFollowsItemSizeChanged(); void contentItemDataChanged(); -private slots: +private Q_SLOTS: void updateImplicitSize(); private: void createImpl(bool inProcess); diff --git a/src/window-lib/windowmanager.h b/src/window-lib/windowmanager.h index c1366cdc..cb7ac035 100644 --- a/src/window-lib/windowmanager.h +++ b/src/window-lib/windowmanager.h @@ -39,7 +39,7 @@ class WaylandCompositor; class WindowManagerInternalSignals : public QObject { Q_OBJECT -signals: +Q_SIGNALS: // Emitted right before the WaylandCompositor instance is created void compositorAboutToBeCreated(); void shutDownFinished(); @@ -88,7 +88,7 @@ public: protected: bool eventFilter(QObject *watched, QEvent *event) override; -signals: +Q_SIGNALS: Q_SCRIPTABLE void countChanged(); Q_SCRIPTABLE void slowAnimationsChanged(bool); @@ -100,7 +100,7 @@ signals: void windowPropertyChanged(QtAM::Window *window, const QString &name, const QVariant &value); -private slots: +private Q_SLOTS: void inProcessSurfaceItemCreated(QtAM::AbstractRuntime *runtime, QSharedPointer<QtAM::InProcessSurfaceItem> surfaceItem); void setupWindow(QtAM::Window *window); @@ -114,7 +114,7 @@ public: void setupInProcessRuntime(QtAM::AbstractRuntime *runtime); #if QT_CONFIG(am_multi_process) -private slots: +private Q_SLOTS: void waylandSurfaceCreated(QWaylandSurface *surface); void waylandSurfaceMapped(QtAM::WindowSurface *surface); |