From 3edf3d073033a6e87ee8cad170c577d77b84f707 Mon Sep 17 00:00:00 2001 From: Tasuku Suzuki Date: Thu, 12 Jan 2023 11:25:07 +0900 Subject: [PATCH] Move QApplication::autoSipEnabled() to public scope The method is not meant be a slot. warning: getter QApplication::autoSipEnabled possibly mismarked as a slot [clazy-const-signal-or-slot] [ChangeLog][QtWidgets][Potentially Source-Incompatible Changes] bool QApplication::autoSipEnabled() is no longer a slot. Code such as using QObject::connect() to connect to it as a slot or accessing it through meta object system will have to be rewritten. Change-Id: I892a51120478f3c90e5834c8e3e00bc836b84c52 Reviewed-by: Volker Hilsheimer (cherry picked from commit 03ed57afa0c5af5076583dd4e415e54983e7e0a8) Reviewed-by: Qt Cherry-pick Bot --- src/widgets/kernel/qapplication.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/kernel/qapplication.h b/src/widgets/kernel/qapplication.h index d60e83a643e..c4c73d4cf80 100644 --- a/src/widgets/kernel/qapplication.h +++ b/src/widgets/kernel/qapplication.h @@ -129,12 +129,12 @@ Q_SIGNALS: public: QString styleSheet() const; + bool autoSipEnabled() const; public Q_SLOTS: #ifndef QT_NO_STYLE_STYLESHEET void setStyleSheet(const QString& sheet); #endif void setAutoSipEnabled(const bool enabled); - bool autoSipEnabled() const; static void closeAllWindows(); static void aboutQt();